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