Ivandro Ismael Ivandro Ismael -3 years ago 263
Git Question

How to reset sourcetree settings/preferences

I've done something nasty in my

preference
is there any way I can reset to
default settings
?!

Answer Source

You could see if the process describe in "Wiping SourceTree Preferences" can help.

  • 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/
  • 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, log out and log back in. Mavericks caches all Preferences while you're logged in and deleting the files doesn't actually clear the settings any more.
  • Open SourceTree again to test if it worked or not.

But be careful:

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.


Note that on Windows, those preference files would be under %localappdata%\Atlassian\SourceTree.exe_Url_..., where "..." is replaced with random numbers and digits.

Kieran Senior (SourceTree developer working for Atlassian) mentions in the comments having added a Windows section:

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).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download