git checkout <branch-to-modify-head> git reset --hard <commit-hash-id-to-put-as-head> git push -f
git reset --hard <commit-SHA> git push origin HEAD:<name-of-remote-branch>
git revert commit-id