It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree diff between two commits

bhuwan agarwal Feb 20, 2014

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.

2 answers

4 votes
Yanis Fourel Aug 07, 2018

Here is a much better solution :

From the "Log / History" tab, select the two commits ( Ctrl + left click ) and will siply display the diff

 

Hope that helps

Carlo Marasco Aug 08, 2018

Legend, so simple

James Walter Taylor I'm New Here Mar 20, 2019 • edited

This approach works to display the differences, I would like to produce an annotated report, a document or file, in the end, itemizing the changes by file. It would also be nice to attribute the change by commit and by the author.

ZX L May 19, 2019

you are my angle

0 votes
Antoine Cœur Jun 04, 2014

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

By Z Feb 24, 2015

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

Ahmed Hassanein Aug 05, 2015

I have the same question!

Antoine Cœur Aug 05, 2015

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

Antoine Cœur Aug 05, 2015

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.

Antoine Cœur Aug 05, 2015

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.

Ahmed Hassanein Aug 05, 2015

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,126 views 1 22
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