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.
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
Legend, so simple
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.