git delete last commit in remote

Shell
1
$git rebase -i HEAD~2
$git rebase -i HEAD~2

Source

Also in Shell: