git 如何重置 sourcetree 设置/首选项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24163023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:12:02  来源:igfitidea点击:

How to reset sourcetree settings/preferences

gitatlassian-sourcetree

提问by Ivandro Ismael Gomes Jao

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

我做了一些讨厌的事情,preference有什么办法可以重置default settings吗?!

回答by VonC

You could see if the process describe in Wiping SourceTree Preferencescan help - but be careful:

您可以查看Wiping SourceTree Preferences中描述的过程是否有帮助 - 但要小心:

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.
  • 确保 SourceTree 已关闭
  • 在删除文件之前,请确保将文件备份在以下文件夹中
  • 删除文件“ bookmarks.xml”、“ opentabs.xml”、“ userhostsC:\Users\<username>\AppData\Local\Atlassian\SourceTree\
  • 删除文件 C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config
  • 再次打开 SourceTree 测试它是否有效。

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.
  • 确保 SourceTree 已关闭。
  • 在删除文件之前,请确保将文件备份在以下文件夹中
  • 删除所有内容 ~/Library/Application Support/SourceTree/
  • 删除~/Library/Preferences/com.torusknot.SourceTreeNotMAS.plist(您应该使用 SourceTree 的直接版本,因此是“NotMAS”)
  • 如果您使用的是 Mavericks 或更高版本,请注销并重新登录。Mavericks 在您登录时缓存所有首选项,删除文件实际上不再清除设置。
  • 再次打开 SourceTree 测试它是否有效。

...

...

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

如果这不能解决您的问题,请关闭 SourceTree 并恢复文件,然后再次重新打开 SourceTree(如果可能的话)。



Update 2018: Skychanadds in the comments

2018 年更新:Skychan在评论中添加

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

对于当前版本,2.7+还需要删除(备份)目录中的两个.json文件\Atlassian\SourceTree\

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

(在MacOS: /Applications/SourceTree.app/

回答by André Batista

  • 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.configOpen SourceTree again to test if it worked or not.
  • 在删除文件之前,请确保将文件备份在以下文件夹中删除文件"bookmarks.xml", "opentabs.xml", "userhosts"in C:\Users\<username>\AppData\Local\Atlassian\SourceTree\
  • C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\<version_number>\user.config再次删除Open SourceTree 中的文件以测试它是否有效。

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 passwdfile, now everything is ok :)

我的身份验证(用户名和密码)有问题,所以我需要重置我的帐户。我按照 Windows 的所有步骤操作,但我也删除了passwd文件,现在一切正常 :)