Sourcetree + minified files = SO SLOW

I've narrowed down the issue. If you have uncommited compressed / min files sourcetree bogs down so much. It just spins and spins. It took me about 10 minutes today to commit two files. THAT'S HORRIBLE! I believe it's an issue with whatever diff tool Sourcetree is using. Please fix this, I can't do anything with Sourcetree now.

4 answers

1 accepted

1 vote
Answer accepted

Try marking your minified CSS to not be diffed. See #1 here:

Link is dead

What do you recommend me doing then? I'd really like to continue to use SourceTree, but right now it's just not performing quick enough after this recent update.

The problem is that Git is resource intensive when dealing with diffs like that and also takes a long time to respond. The Git process maxes out causing some general slowness.

The diff SourceTree uses is Git. We call Git and get diff output from it.


I had this issue, and my solution was to mark the relevant file types as binary in the attributes file:

  1. If it doesn't exist, create a .gitattributes file in the root of your project.
  2. Add a line like "*.min.js binary" (without quotes)...change it to match whatever files you don't want to diff.

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