SourceTree very slow with many repositories

I work on a lot of small projects on daily basis and need to switch often.

  • I have over 50 Git Repositories in Sourcetree.
  • Usually 5 projects are open in "Tabs".

Switching from "Tab" in SourceTree is very slow. Sometimes up to 15 seconds. How can I improve this behaviour?

enter image description here


Solution 1:

I know this is an old question, but you could also try this:

https://stackoverflow.com/a/24045966/371917

$ git config --global core.preloadindex true
$ git config --global core.fscache true
$ git config --global gc.auto 256

Secondly, here is a post that explains that git gc --aggressive may not be a great idea.

Solution 2:

Executing the stated git command did not do the trick for me. Eventually what really speed up SourceTree was disabling 'spell check commit messages' in the tools > options menu. I also disabled 'load avatar images from gravatar.com' option while I was at it.

Solution 3:

Any action in my source tree was super slow. Commit, click on a file to see changes, push etc.

I discovered that my antivirus (avast) was the cause. I disabled the file protection and source tree became immediate.