Moving refs around
suggest changeRunning git reset --hard
moves refs to the specified hash/ref.
Moving MyBranch
to b8dc53
:
$ git checkout MyBranch # moves HEAD to MyBranch
$ git reset --hard b8dc53 # makes MyBranch point to b8dc53
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents