how to revert commits on git code example
Example 1: how to revert to log in git
git revert --no-commit 0766c053..HEAD
git commit
Example 2: how to revert commit in git
git checkout <commit hash>
git revert --no-commit 0766c053..HEAD
git commit
git checkout <commit hash>