Sourcetree – undo unpushed commits

I am using Sourcetree for Windows for a git-repository and would like to undo an unpushed commit.

Is that possible? If I do “revert commit”, it creates a second commit which reverts the first commit, but I don’t want the first commit to appear at all in my source control.

I could also delete my local repository and pull it again without my local commit, but maybe there’s another way?

4 Answers
4

Leave a Comment