1.跳过注册验证
2.进入 LocalAppData\Atlassian\SourceTree\ 目录 创建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.设置SSH(window) 点击回车 生成id_rsa 和 id_rsa.pub 两个文件,位置在:c:\Users\用户\.ssh
ssh-keygen -t rsa
5.配置gitlab公钥
登录 -- 设置 -- ssh秘钥
并将id_rsa.pub文件内容复制
6.SourceTree中配置私钥
工具 -- 选项 -- ssh客户端配置 -- 启动ssh助手