git move earlier commit code example
Example 1: revert commit git
git revert <commit hash>
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
git revert <commit hash>
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit