Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,306
Community Members
 
Community Events
165
Community Groups

compare branch to master

how can i compare two branches. lets say my working dev-branch to master or master to origin/master.

i can do this with git command line but how can this be done with sourctree. is it possible to have this in also an external diff tool? filemerge can handle a "directory diff".

i sometimes want to have the external diff to view the complete file and not only the "differences"

 

markus

2 answers

Use control-click or command-click to select any two commits (so both are highlighted at the same time)

The window in the lower left shows you a list of all files that were different (added, deleted, or modified)

You can select a file from that list to see the specific changes in that file between the two selected commits.source_tree_diff.png

You can also configure a third party diff tool, but the built-in functionality has met my needs so I don't have any experience with that.

 

Hmmm, I know this is really stale, but I just started using souretree.  This shows how to compare two commits, but the OP asked for difference in branches.  How do you know which commits to click on?

You can select 2 commits (cmd click) and compare in sourcetree. to compare 2 branches select the tip of the branches in log view , you can do the same for local and origin too.

 

But I usually use terminal since it is easier .

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,639 views 127 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you