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?
Asked
Active
Viewed 434 times
2

Community
- 1
- 1

Philip Pittle
- 11,821
- 8
- 59
- 123
1 Answers
4
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.

mayo
- 3,845
- 1
- 32
- 42
-
1Force push to master, ftw. – Adam Prescott Jul 15 '15 at 20:01