1.下载
首先,下载windows版本的sourceTree。直接进入官网https://www.sourcetreeapp.com/下载
进入下载保存sourceTree的目录,双击SourceTreeSetup-3.3.9.exe文件进行安装
打开会出现账户注册的页面,点击关闭
进入%LocalAppData%\Atlassian\SourceTree目录下,创建accounts.json文件
accounts.json文件内容,其中Username,Email填写为登陆系统用户
[
{
"$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
}
]
重新点击安装文件,进入
选择第一个,等待下载成功,即安装成功