reset to commit id git code example
Example 1: how to reset back to commit id in git
git reset --hard id
git push --force
Example 2: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
git reset --hard id
git push --force
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit