How to Wipe SourceTree Preferences
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
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.
Solution
Mac
The following files need to be deleted after they've been backed up.
- Make sure SourceTree is closed.
- Make sure the files are backed up in the following folders before removing the files
- Remove everything in ~/Library/Application Support/SourceTree/
- 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")
- If you're using Mavericks or later, run the following in the terminal
defaults delete com.torusknot.SourceTreeNotMAS
- 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
- Make sure SourceTree is closed
- Make sure the files are backed up in the following folders before removing the files
- Remove files "bookmarks.xml", "opentabs.xml", "userhosts" in C:\Users\<username>\AppData\Local\Atlassian\SourceTree\
- Remove file in C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config
- 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).