git revert a previous commit code example
Example 1: how do i get the last commit
$ git reset --soft HEAD~1
Example 2: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
$ git reset --soft HEAD~1
git revert --no-commit 0766c053..HEAD
git commit