SourceTree 免登录跳过初始设置的方法

此方法只适用于win系统

首先,安装完 SourceTree 以后先运行一次,弹出初始化登录页面后退出。

打开 我的电脑,在最上方的地址栏直接输入以下地址:

%LocalAppData%\Atlassian\SourceTree
在这个目录下新建一个名为 accounts.json 的文件。

使用 文本文档 打开这个文件,将以下内容复制到其中后保存。

[
 {
   "$id": "1",
   "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
   "Authenticate": true,
   "HostInstance": {
     "$id": "2",
     "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
     "Host": {
       "$id": "3",
       "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
       "Id": "atlassian account"
     },
     "BaseUrl": "https://id.atlassian.com/"
   },
   "Credentials": {
     "$id": "4",
     "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
     "Username": "",
     "Email": null
   },
   "IsDefault": false
 }
]

你可能感兴趣的:(SourceTree 免登录跳过初始设置的方法)