Reputation: 12295
In this question: Break a previous commit into multiple commits, there are steps to split a commit using git rebase -i HEAD~3
. This looks like it works, but is there a way to accomplish this from the SourceTree GUI?
Upvotes: 2
Views: 465
Reputation: 4075
You can reset the branch to one specific commit (right click on commit) and select the Mixed (or Soft) mode, make you new commits and make a forced push.
Your branch:
Right click on specific commit:
Select mode:
Then you will have your branch based on the commit selected. The files of the others commits will be ready for make new commits.
Now you can make the new commits as you want.
And then to make the changes in origin (and erase the others commits ie, override the history) you will have to force your push.
Upvotes: 4