一、下载和安装
1、⾸先,下载windows版本的sourceTree。直接进⼊官⽹https://www.sourcetreeapp.com/下载
2、双击SourceTreeSetup-3.3.9.exe⽂件进⾏安装,打开时会出现账户注册⻚⾯,点击关闭
3、进⼊%LocalAppData%\Atlassian\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
}
]
其中Username,Email填写为登陆系统⽤户,然后重新进⼊会出现如下窗⼝
选择第⼀个,即安装完成。