How to create a patch that spans transactions using Sourcetree?

I notice that when I create a patch, the dialog creates a patch that is "for" the commit that I selected "from" its predecessor.

In the dialog box, I can painfully select two separate commits, and the diff panel shows the differences between the two — the patch I want.

But when I click "OK", I still get the patch to commit.

Is there a way to achieve what I had in mind using Sourcetree?

(note: perhaps it would have a tag "sourcetree"?)

+6
source share
1 answer

You can use the git diff oldHash..newHash > file.patch to get one patch for multiple commits.

+5
source

Source: https://habr.com/ru/post/923723/


All Articles