

gitconfig file is updated with two entries: and .

Commandline Git configīy saving these settings in SourceTree, your. But if you don’t close it after diffing each file, it’ll work like a charm. diff (if you dont want to use old good ported to Win diff -u). The only downside I found is that vsdifftool may take quite some time to start up. TortoiseMerge from TortoiseSVN can export result of files-compare to. Merge tool: "$LOCAL" "$REMOTE" "$BASE" "$MERGED" //mĬlick OK, and And that’s it! Now whenever a merge conflict occurs, you’ll be able to resolve it using Visual Studio. Look under Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer.Īs for the arguments fields, type in the following:ĭiff tool: "$LOCAL" "$REMOTE" "Source" "Target" //t Visual Studio 2017 has it slightly more hidden. For VS 2015 and below you can find it in the Visual Studio installation folder, under Common7\IDE subfolder. In the Diff Command field enter the full path to the vsdiffmerge.exe. SourceTree configįirst, open up the options window and go to Diff tab.Ĭhange both External Diff Tool and Merge Tool to Custom. It’s not commonly known that this IDE may be used for resolving merge conflicts, but as you’ll see it’s very simple to set up.
#Windows diff diffmerge how to
Today, a short note on how to set up Visual Studio as a diif and merge tool in SourceTree and Git client. This article was updated for Visual Studio 2017. The commands above assume that the MSI installer was used to install DiffMerge in the standard location. Using Visual Studio as diff/merge tool in Git and SourceTree You can verify your settings with the git config -list command. Using Visual Studio as diff/merge tool in Git and SourceTree – Michał Dudak
