how to redo last commit in github code example
Example 1: revert commit git
git revert <commit hash>
Example 2: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
git revert <commit hash>
git revert --no-commit 0766c053..HEAD
git commit