how to revert a commit with commit id in git code example Example: how to reset back to commit id in git git reset --hard id git push --force