Home | My New Hugo Project

How to reset git repo to remote origin

2021-09-22

git fetch origin
---- fetch from origin
git reset --hard origin/master
--- this is the real reset.

git clean -f -d
**** warning clean will remove all data and directories not tracked.
**** so if you have data file or untracked data - it will be gone.
**** Not really necessary to really sync the actual code.  But it will 
**** sync the directories.