Temporary files

Is it possible to disable $TMPDIR usage completely in Sourcetree?

If not, is it possible to disable the preview pane completely?


When you choose a commit sourcetreeapp retrieves the complete files from it, stores them in temp dir, and it's rather slow (the app stalls), even if you disabled diff for the filetype in settings (as suggested in another post).

I don't want to have my repo files randomly spread in the temporary directory either.


Also, can't seem to select External diff utility, and the default (greyed out) doesn't seem to work. Is there a catch to that?

I am also assuming that when doing a diff with FileMerge (the default), sourcetreeapp also create temporary files for that operation?




5 answers

1 accepted

0 votes
Answer accepted

Hi Leo,

That's not currently possible. Please file a ticket on https://jira.atlassian.com/browse/SRCTREE with details on your request and workflow for us to review and prioritize. 


Brian Ganninger
Senior Mac Developer, SourceTree

0 votes

A workaround would be to create a custom action to delete $TEMPDIR and then use it in ST after you're done working.

Done. Hope you can make it, would be great, love Sourcetree! :D)


OK, but two things:

(1) TEMPDIR is used by other apps, say Photos, that might be doing a cloud download for instance, may not want to delete everything in there.

(2) Still doesn't solve the speed issue, but I guess the only option for this is not get the files for a commit, like disabling preview completely, or having a default tab in its place for it, like file info only.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

1,207 views 4 2
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