git - 如何重置 Sourcetree 设置/首选项

标签 git atlassian-sourcetree

我在我的偏好中做了一些令人讨厌的事情!有什么方法可以将 Sourcetree 重置为默认设置?

最佳答案

您可以查看过程是否描述在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.

window

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

(那些是 stash 文件夹/文件:你可以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).


2018 年更新:Skychan添加 in the comments

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

(在 MacOS 上:/Applications/SourceTree.app/)

关于git - 如何重置 Sourcetree 设置/首选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24163023/

相关文章:

git - Sourcetree 远程 : Invalid username or password

git - 如何忽略 Git 中的现有文件?

java - eclipse egit 工作目录 vs jenkins 和 git 方式

python - IPython 笔记本的版本控制

git - 你能为 github 和 gitlab/gitbucket 使用相同的 ssh key 吗?

Bitbucket 克隆到 Sourcetree,反复询问密码

git - 将 TFS 项目转换为 git repo 的最佳方法是什么

git - 推送时是否需要在远程主机上安装 git?

bitbucket - 没有可用的受支持的身份验证方法(服务器发送 : publickey)

git - 源树错误 :1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version