delete a commit from remote code example
Example 1: delete remote commit
git reset --hard <last_working_commit_id>
git push --force
Example 2: delete remote commit
git reset --hard <last_working_commit_id>
Example 3: git delete last commit in remote
1
$git rebase -i HEAD~2
Example 4: git delete last commit in remote
$git rebase -i HEAD~2