delete commit from remote git 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>
git reset --hard <last_working_commit_id>
git push --force
git reset --hard <last_working_commit_id>