How to Wipe SourceTree Preferences

Problem

In the event that some problem has happened with SourceTree due to a preference setting which shouldn't be set as it should then you may have to totally wipe your preferences. This is a very rare problem to happen and is usually due to a config being set outside of SourceTree, or some system environment setting that could be causing issues with other configurations leading SourceTree to crash.

Please note that wiping the preferences will mean you will lose your bookmarks and view settings. Please back these up in the event that wiping your preferences isn't the cause of the problem.

If wiping your preferences does solve the problem you may have to re-add your bookmarks once again and specify other general settings in SourceTree.

Resolution

Mac

The following files need to be deleted after they've been backed up.

  1. Make sure SourceTree is closed.
  2. Make sure the files are backed up in the following folders before removing the files
  3. Remove everything in ~/Library/Application Support/SourceTree/
  4. If you're using an OS X version before Mavericks: Remove ~/Library/Preferences/com.torusknot.SourceTreeNotMAS.plist (you should be using the direct version of SourceTree, hence "NotMAS")
  5. If you're using Mavericks or later, run the following in the terminal defaults delete com.torusknot.SourceTreeNotMAS
  6. Open SourceTree again to test if it worked or not.

If this didn't fix your problems then close SourceTree and restore the files, then re-open SourceTree again (if at all possible).

Windows

  1. Make sure SourceTree is closed
  2. Make sure the files are backed up in the following folders before removing the files
  3. Remove files "bookmarks.xml", "opentabs.xml", "userhosts" in C:\Users\<username>\AppData\Local\Atlassian\SourceTree\
  4. Remove file in C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config
  5. Open SourceTree again to test if it worked or not.

If this didn't fix your problems then close SourceTree and restore the files, then re-open SourceTree again (if at all possible).

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article

Not finding the help you need?

Ask the community

Powered by Confluence and Scroll Viewport.