How do I reset my local branch to be just like the branch on the remote repository?
I did:
git reset --hard HEAD
But when I run a <
I needed to do (the solution in the accepted answer):
git fetch origin git reset --hard origin/master
Followed by:
git clean -f
to remove local files
To see what files will be removed (without actually removing them):
git clean -n -f