1, 先安装 Git-2.21.0-64-bit.exe
2, a) 到盘目录下输入 %LocalAppData%\Atlassian\SourceTree\
b) 在创当前目录下建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
}
]
c) 重新启动 SourceTreeSetup-2.4.8.0.exe 可直接使用
如遇到"这是一个无效的源路径",则解决方法:工具 ——》选项 ——》 git, 启用git 就可以了