Friday, January 2, 2015

SourceTree File Comparison Overview

Gitflow Hotfix Overview

Gitflow Release Overview

Gitflow Feature Overview

Gitflow Overview

SourceTree Branching and Merging Overview

SourceTree Overview

Thursday, January 1, 2015

File comparison using custom tools

Source Tree by default uses its own File Comparison mechanism to compare difference between files and directories. Source Tree also provides built-in support to some of the tools like FileMerge, DiffMerge, Araxis Merge, KDiff3, we can install these tools and select one of these tools for file comparison.

Apart from the above tools, SourceTree can also be configured to use other custom tools, to use other tools we need to select the custom option and provide the command and arguments for comparison.


File comparison using KDiff3 tool for SourceTree

In the post Setting KDiff file comparison tool for SourceTree we saw on how to set up the KDiff3 tool as a file comparison tool for Source Tree, here we shall see on how to compare 2 files using KDiff3.

1. Open SourceTree.
2. Select the file to be compared.
3. Right click the file and select “Log Selected” option from the context menu


4. Select the 2 versions (commits) to be compared, this will show the difference between the 2 files in the default compare tool.



5. Click on the External Diff button on the top right corner.
6. This will open up the KDiff3 tool automatically and show the difference between the 2 versions (commits) in KDiff3
7. Similarly we can set up source tree to use other file comparison/Merge tools like Beyond-Compare, WinMerge etc..
8. KDiff is an independent tool, it can also be used to do comparison between 2 files in the disk.

Setting KDiff file comparison tool for SourceTree

Source Tree by default uses its own File Comparison mechanism to compare difference between files and directories. Source Tree also provides built-in support to some of the tools like FileMerge, DiffMerge, Araxis Merge, KDiff3, we can install these tools and select one of these tools for file comparison.

To use KDiff, we should first download and install the KDiff3 tool from source forge
http://kdiff3.sourceforge.net/