Git commands collection

Unsynced origin

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

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