how revert the last commit code example
Example 1: roll back last commit in git
git reset --soft HEAD~1
Example 2: git go back to previous commit
git checkout 12feg3435 #commit ID
git reset --soft HEAD~1
git checkout 12feg3435 #commit ID