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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you