how to come back to a commit git hub 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
Example 3: how discharge changes e recover last commit git
git reset HEAD --hard