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

来源:互联网 发布:冰川网络远征ol珍宝阁 编辑:程序博客网 时间:2024/05/24 23:14

首先,安装完 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 就可以直接跳过登录进入软件页面了。