Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,530
Community Members
 
Community Events
184
Community Groups

Sourcetree: How can I compare (diff) files from arbitrary commits ?

Repo is git.

Can not find this option. I see the option to compare file with its parent, but how can I compare any given file with a file from a selected commit ?

1 answer

1 accepted

27 votes
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 06, 2012

Just select 2 commits in the log at once using Cmd-Click, then you'll see the complete diff between those two commits.

If you want to filter things down further you can right-click on a file, click 'Log Selected' to get the history just for that file, and then again multi-select commits in that window.

Thank you very much !

Follow-up question: how to use ExternalDiff to view the diff as provided in the above approach?

@Lin Luo I can still see External Diff on one file at a time in the arbitrary diffs view. Click on one file within the composite diff, and cmd-click > External Diff as always.

Follow-up question: Selecting two commit in the log at once work correct, but it occurs often that the selected commit are lost while viewing the diff (it returns to the uncommited changes). Would there be a way to open a new windows with the diff of the selected two commits? Thanks!

Like Waldek Gorajek likes this

How can I do this on windows? I want to see the differences between two commits on all files involved.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events