Сделать текущую работу
git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
Quaint Quail
git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
git revert commit-id
git reset --hard <commit-SHA>
git push origin HEAD:<name-of-remote-branch>