安装sourcetree如何跳过注册?
需要说明一下,针对SourceTreeSetup-2.4.8.0.exe版本进行如下操作,3以上不支持。
双击安装包,会出现以下界面
选择使用已有账号,会弹出登录页面,先不管这个,复制%LocalAppData%\Atlassian\SourceTree\到我的电脑地址栏敲回车
里面没有accounts.json文件
新建一个文件夹,改名为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
}
]
然后关闭sourcetree,再打开就直接跳过注册了。