SourceTree 安装以后须要使用帐号登录以受权,而且是强制登录。json
登陆过程很是漫长,并未在不FQ的状况下是不能成功的,下面记录一下跳过登陆的方法。spa
装以后,转到用户本地文件夹下的 SourceTree 目录,找到accounts.json 文件,没有则新建。code
C:\Users\Administrator\AppData\Local\Atlassian\SourceTreeblog
输入如下内容保存便可it
[
{
"$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
}
]