Git commands collection

Unsynced origin

You still have the repo online and offline, but they are not linked anymore

01git init
02git remote add origin <origin>
01git fetch origin main
02git reset --hard origin/main