I have large project. I have a branch whose commits are structured as follows:
e
d
c pod updated successfully with this commit
b
a
I want to undo the c commit changes, so I can go on my way with unupdated pods:
e
d
b
a
So what is the simplest way using Sourcetree ? I am not so much coversant with Git please tell me an easy way.
You want to do an interactive rebase where you delete commit c
.
I will demonstrate with a simplified sketch with just three commits, a, b, and c, and I will remove the middle one, commit b.
Here we have commits a, b, and c:
Control-click on commit a, and ask for an interactive rebase:
In the resulting dialog, select the commit you want to delete, and click Delete. Here, I'll delete commit b.
Now click OK. The interactive rebase is performed, and you will find that the unwanted commit is gone: