个人版本的跳过注册方式已经无效,需要下载企业版本
下载地址:https://www.sourcetreeapp.com/enterprise
首次点击msi进行安装 (当前最新版SourcetreeEnterpriseSetup_3.0.17.msi)
然后找到在 %programfiles(x86)%\Atlassian\Sourcetree 目录下找到SourceTree.exe 运行后会出现注册界面
关掉sourcetree 打开%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
}
]
如图:
然后在运行%programfiles(x86)%\Atlassian\Sourcetree\SourceTree.exe即可
本文参考:https://www.cnblogs.com/wswind/p/9921549.html