官网下载地址:https://www.sourcetreeapp.com/
安装后,双击打开,出现注册页,这个时候关掉就可以了。
1. 进入%LocalAppData%\Atlassian\SourceTree\
目录
2. 创建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
}
]
3. 打开sourcetree,已经跳过注册流程。
4. Mercurial
使用git客户端,选择我不想使用Mercurial即可。
5. 配置ssh密钥
点击工具-选项,ssh客户端更改为OpenSSH