Running git reset --hard moves refs to the specified hash/ref.
git reset --hard
Moving MyBranch to b8dc53:
MyBranch
b8dc53
$ git checkout MyBranch # moves HEAD to MyBranch $ git reset --hard b8dc53 # makes MyBranch point to b8dc53