Source Tree (https://www.sourcetreeapp.com/) 是一款免费的Git图形化管理软件,适用于Windows和MacOS,但安装后打开需要注册账号来是初始化设置,有一些麻烦(主要注册账号需要连接外部网络)。
如何跳过初始设置,只需要在安装路径中添加一个accounts.json
的文件即可。其中Windows中默认安装路径:%LocalAppData%\Atlassian\SourceTree\
,你可以在正常注册和使用的Source Tree中找到该文件。
account.json
的内容,其中Username=""
正常填入是注册的邮箱账号名:
[
{
"$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
}
]
参考
- xiofee, SourceTree 免登录跳过初始设置, 博客园cnblogs, https://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html