安装完 git 后。
SourceTreeSetup-2.4.7.0.exe 双击安装发现需要验证用户,暂时关闭退出;
win+e打开文件管理:C:\Users\{text}\AppData\Local\Atlassian\SourceTree
注意 {text} 为你个人电脑的用户文件夹
然后在此文件夹下创建 accounts.json 编辑此文件添加以下内容,保存退出重新打开 SourceTree 即可跳过验证阶段
[
{
"$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
}
]