how to delete last two commits locally and remotely git code example
Example 1: git delete last commit in remote
1
$git rebase -i HEAD~2
Example 2: git delete last commit in remote
$git rebase -i HEAD~2
1
$git rebase -i HEAD~2
$git rebase -i HEAD~2