git restore back to commit 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 revert to old commit
git reset --hard c14809fa
git reset --hard 4a155e5
Will move the HEAD back to where you want to be
git reset --hard c14809fa