how to go back to an old git commit code example
Example 1: git revert to old commit
git reset --hard c14809fa
Example 2: git go back to previous commit
git checkout 12feg3435 #commit ID
git reset --hard c14809fa
git checkout 12feg3435 #commit ID