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 External Diff: Deleting temporary files

When I do an External Diff, it creates some workfiles with the strings _BACKUP_, _BASE_, _LOCAL_ and _REMOTE_ in them. These files remain even after the diff is done. I'd like them to be deleted after the external diff.

Can Sourcetree do that, or do I have to write my own script?

Sourcetree version is 2.6.3 (134)

Beyond Compare Version 4.2.2 (build 22384)

MacOS 10.11.6



1 answer

1 accepted

0 votes
Answer accepted

Sourcetree doesn't actually generate the temp files (here's an example of how it can go rogue) we just specify the diff command to be run and the argument format. It should be written to a temporary directory in /var or the like and cleaned up when the system next purges it. If it's that sensitive I'd recommend a script which you could then invoke as a custom action within Sourcetree.

Brian Ganninger
Senior Mac Developer, Sourcetree

Hi Brian, thanks for your reply, and the stackoverflow link. That should be enough to get me moving in the right direction.

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,989 views 0 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