Git: Deleting the last pushed commit

Wed 11, Mar 2020 git

This is something I really gotta remember:

git push origin +abcd1234^:master

The above example deletes the commit abcd1234 (the newest one) on the branch master and pushes it to origin.


Back to top