Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree doesn't launch External Diff/Merge with Visual Studio 2017

I'm having trouble using Visual Studio's vsDiffMerge as the External Diff/Merge Tool in SourceTree.

Possibly relevant info:

  • SourceTree version: 
  • Windows version: Win 10 1903.18362.356
  • Confirmed path to tool: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\vsDiffMerge.exe"
  • Diff args: "$LOCAL" "$REMOTE" "Source" "Target" //t
  • Merge args: "$LOCAL" "$REMOTE" "$BASE" "$MERGED" //m
  • Log from Process Viewer when trying to run External Diff:

"Command": "git\r\n-c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper=\"C:/Users/<username>/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE\" difftool -y --tool=sourcetree --\r\nSQL/<FileName>",
"Directory": "C:\\Users\\<username>\\source\\Bitbucket\\LiveCheck",
"Status": "Finished",
"Duration": "00:00:00.2626937",
"CallerContext": "GetExternalDiffProcess",
"Output": "Skipping command-line '\"C:\\Users\\<username>\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\bin\\..\\usr\\bin\\bash.exe\"'\n('C:\\Users\\username>\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\bin\\..\\usr\\bin\\bash.exe' not found)\nNeed a valid command-line; Edit the string resources accordingly\nfatal: external diff died, stopping at SQL/<FileName>\n"

I know that that the Command doesn't look right, but no matter how I adjust my arguments it doesn't change the command sent. Please someone tell me what I'm doing wrong!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,770 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you