下载安装就略过了
安装完成后都会进入到这个界面
复制下面这行
%LocalAppData%\Atlassian\SourceTree
打开资源管理器 Win+E 粘贴 回车 进入到SourceTree 目录
然后新建文档 重命名 accounts.json
.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