git reset to commit id code example
Example 1: git hard reset to commit id
git reset --hard <commit-hash>
git push -f origin master
Example 2: how to reset back to commit id in git
git reset --hard id
git push --force
Example 3: reset to commit
# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit