Ivandro Jao
Ivandro Jao

Reputation: 2961

How to reset Sourcetree settings/preferences

I've done something nasty in my preferences! Is there any way I can reset Sourcetree to default settings?

Upvotes: 24

Views: 62915

Answers (4)

Nav
Nav

Reputation: 34

I was having a problem with authentication (username and password), so I needed to reset my account. I follow all those steps for Windows, but I´m also deleted the passwd file, now everything is ok

Below steps: worked 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.

Upvotes: -1

Uzair
Uzair

Reputation: 775

Can you try the following steps:

  1. Wipe SourceTree preferences.

  2. Uninstall SourceTree (if it shows on the App&Features list)

  3. Backup then delete the directory below before proceeding with next step

    • Navigate to C:\Users<UserName>\AppData\Local and delete SourceTree & SourceTree-Settings folder
    • Navigate to C:\Users<UserName>\AppData\Local\Atlassian and delete all SourceTree Files/Folder.
  4. Download SourceTree and install it.

Upvotes: -1

VonC
VonC

Reputation: 1325387

You could see if the process describe in Wiping SourceTree Preferences can help - 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.

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.

Mac

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

(Those are hidden folders/files: you can look for them in Finder)

[...]

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


Update 2018: Skychan adds in the comments

With the current version, 2.7+ you need to also delete (backup) the two .json files in the \Atlassian\SourceTree\ directory.

(On MacOS: /Applications/SourceTree.app/)

Upvotes: 58

Andr&#233; Batista
Andr&#233; Batista

Reputation: 1

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

I was having a problem with authentication (username and password), so I needed to reset my account. I follow all those steps for Windows, but I´m also deleted the passwd file, now everything is ok :)

Upvotes: 0

Related Questions