reset head 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
git reset --hard <commit-hash>
git push -f origin master
git reset --hard id
git push --force