SourceTree diff between two commits

I am a newbie using Git and SourceTree. I would like to understand how can I use SourceTree to view differences between two different commits. The two commits can be on the same branch or on different branches.

Also explanation of diff parent vs diff merge in the diff view.

1 answer

Diff vs parent: the diff with the previous commit in the same (HEAD) branch

Diff vs merged: the diff with the previous commit in the other (merged) branch

Where is the option in SourceTree? I hightlighted two separate commit and I don't see any option to do that. Thanks.

I have the same question!

1. From one commit, right-click the other commit and select Merge... 2. Untick "Commit merged changed immediately". 3. Compare using Diff vs parent and Diff vs merged. 4. When you are happy, right-click on "Working Copy", select Reset..., select Reset All, click Reset All

Diff vs parent and Diff vs merged are available after a Merge, when selecting a file and clicking the "settings-like" button which is right from the search bar on top right of the diff.

Diff vs parent and Diff vs merged are available after a Merge, when selecting a file and clicking the "settings-like" button which is right from the search bar on top right of the diff.

thanks a lot for your answer But I think it should be easier and less risky than this simply selecting the 2 commits right clicking and Diff or something!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,944 views 1 5
Read article

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