I started to use SourchTree recently.
The default format of the diff is to use "-" or "+" to show changes.
I like to have 2 files side-by-side and show the change line to line.
However, I cannot find the option to change the format. Can you help?
Another way to do this is to right-click on a branch and select the "Diff against current" context menu command (current refers to the branch you are currently working on). This will give you the diff between the head commits of the two branches.
SourceTree config First, open up the options window and go to Diff tab. Change both External Diff Tool and Merge Tool to Custom. In the Diff Command field enter the full path to the vsdiffmerge.exe. For VS 2015 and below you can find it in the Visual Studio installation folder, under Common7\IDE subfolder.
Compare two branches using Sourcetree After clicking on “Diff Against Current”, you will be presented with the list of differences between your files, whether they are in your working tree or if they are in your index already.
No, I really hope to see that feature in some of the future releases.
If you don't see any "side-by-side diff" button on the diff view, then a good workaround is to setup a difftool in your SourceTree.
See for instance "How to use Meld as a merge tool with SourceTree on Windows?".
Using an external diff tool (supporting natively a side-by-side view) is more reliable than the native tool options here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With