how to revert back using git 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: how to revert commit in git
git checkout <commit hash>
git reset --hard 4a155e5
Will move the HEAD back to where you want to be
git checkout <commit hash>