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

External diff command source-tree inserting \r\n in process Log and does not run

Here is an output of the saved process log

git\r\n-c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks difftool -y --tool=sourcetree cdba7a26dc67689da83018e619c8195a58a6f4bf^..cdba7a26dc67689da83018e619c8195a58a6f4bf --\r\nmarktestfile


This does not work because of the inserted "\r\n" by source tree. If I run this command less the "\r\n" in the terminal it works, any thoughts? Thanks.

1 answer

0 votes

The carriage returns are just an artifact of the process viewer as far as I can see, I.e. I see the same in the process viewer but the external diff program opens.

What does the git config look like? 

Hi Michael, thanks for the response,

If I take this command place it in a terminal and remove the "\r\n" then it launches beyond compare, but it will not launch if I don't do that. It does nothing.


Here is the .gitconfig file in my user folder:



name = xxxxxxx    

email = xxxxxxx


helper = manager


recentrepo = 'C:/xxxxx/yyyyy'

[difftool "sourcetree"]

cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' $LOCAL $REMOTE

[mergetool "sourcetree"]

cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' $BASE $LOCAL $REMOTE trustExitCode = true


tool = sourcetree


guitool = sourcetree

External diff (beyond compare, or anything else) doesn't work for me using 3.1.2 and HIgh Sierra. I am still debugging. Logging doesn't work either. It "used to work." In the task manager the error is

Unknown merge tool sourcetree

Which is odd since preferences/diff is correctly configured.

Issue reported against Windows, have yet to find someone see this with OSX:

minnsey Atlassian Team May 27, 2019

Hi @Terris Linenbach You should raise an issue against the macOS version at

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...

7,281 views 5 14
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