git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f