How do I delete unpushed git commits?

I accidentally committed to the wrong branch.
How do I delete that commit?

7

Leave a Comment