revert back one commit code example Example: revert back to a commit git git reset --hard 4a155e5 Will move the HEAD back to where you want to be