Anuluj zobowiązanie, które nie zostało zepchnięte
git reset --soft HEAD~
Average Joe
git reset --soft HEAD~
git reset --hard HEAD~1
git push -f <remote> <branch>
git reset --hard origin/<branch_name>
git reset --hard <last_working_commit_id>
git push --force
git reset --hard <last_working_commit_id>
So we must not reset to the commit_id that we don't want.
Then sure, we must push to remote branch:
git push --force
$ git reset <previous label or sha1>
$ git commit -am "blabla" <--- optional
$ git push -f <remote-name> <branch-name>