revert branch back to previous commit git bash code example
Example 1: revert back to a commit git
git reset --hard 4a155e5
Will move the HEAD back to where you want to be
Example 2: git go back to previous commit
git checkout 12feg3435 #commit ID