how to remove last commit from git remote branch code example
Example 1: remove last commit from remote
git push origin +HEAD^:<name of your branch, most likely 'master'>
Example 2: git delete last commit in remote
$git rebase -i HEAD~2
git push origin +HEAD^:<name of your branch, most likely 'master'>
$git rebase -i HEAD~2