How do I reset my local git repo to be exactly the same as the remote repo?
I’ve tried:
git reset --hard HEAD^
But now git status says I have diverging commits. I basically want to just wipe anything I’ve got locally and get the exact remote repo on my local machine.
git reset --hard HEAD^will only reset your working copy to the previous (parent) commit. Instead, you want to runAssuming remote is
originand the branch you want to reset to ismaster