Philip Pittle
Philip Pittle

Reputation: 12295

Break a previous git commit into smaller commits using SourceTree

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

Answers (1)

mayo
mayo

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:Scenario

Right click on specific commit: Right Click

Select mode: Mixed 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. result

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. focre push

Upvotes: 4

Related Questions