I was messing about with reset after reading stuff in the Pro Git book.
I basically ended up doing a reset --hard to a revision 12 commits previous.
I can’t seem to get back to the present, or the latest commit. I’ve tried reset using ORIG_HEAD and even feeding it in the sha1 of the revision to go forward to.
Running git status I get:
Your branch is behind by 12 commits and can be fast-forwarded.
How do I move HEAD back to the latest commit?
It seems as though you’ve already pushed the 12 commits you reset. If that’s the case, then
should work where
REMOTEis the name of the remote (commonlyorigin) andBRANCH_NAMEis the name of your current branch.