If the sourcetree is following the logic of git itself (and I see no reason why it shouldn't), then it should be like this. If you want to diff two commits, then you'll use:
git diff commit1 commit2
where commit1 and commit2 are hash values (or part of it) of each commit. Also, when doing a diff on just one of the commits, like this:
git diff commit
then you are comparing the current file with that commit and if you want to compare it to the version of the file in your HEAD, you would use:
git diff HEAD commit
and if you want to compare previous two commits, you can use:
git diff HEAD HEAD~1
(HEAD~1 means "1 commit before the HEAD", and you can use also HEAD~2, HEAD~3, etc)
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
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!
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