how to remove commits from remote branch in git code example
Example 1: delete a pushed commit
# delete the last commit
$git reset –hard HEAD~
Example 2: remove last commit from remote
git push origin +HEAD^:<name of your branch, most likely 'master'>