git revert point to past commit code example
Example 1: how do i get the last commit
$ git reset --soft HEAD~1
Example 2: how to revert commit in git
git checkout <commit hash>
$ git reset --soft HEAD~1
git checkout <commit hash>