SourceTree Windows: git diff branch1:file branch2: file

Via the Commandline it is possible to get the diff between a file from branch1 and branch2. Is this currently possible in SourceTree for Windows?

2 answers

1 accepted

Yes, you can display a diff between any 2 points in history by Ctrl-clicking the 2 commits in the log view. You can also get a shortcut to diffing between any other point in history and your current state by right-clicking in the sidebar or the log and selecting 'Diff against current'.

Do you have a screenshot for the second method? I can't find it.

Actually it's just on items in the sidebar (branches, tags), not in the log list, sorry. Right-click another branch or a tag for example and select 'Diff Against Current'.

Ok, this works for me. But our repository gets many changes each day and its a bigger repository, so the list of file changes is verly long. And currently there is no search edit or something like this. Can this be added or a right click option like "Blame Selected"?

Like "Diff against branch" and than a submenu with the branches?

Any updates on my suggestion?

Hey Lars,

You can always file this as a feature request on, we read all requests on there and they're filed in a place which we use to develop SourceTree. The project for Windows is SRCTREEWIN and for Mac it's SRCTREE. If you file it with as much detail as you can then it makes it easier for us to review them.

Hope that helps :)

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

281 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot