转载https://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html
如何跳过初始设置,只需要在安装路径中添加一个accounts.json
的文件即可。其中Windows中默认安装路径:%LocalAppData%AtlassianSourceTree
,你可以在正常注册和使用的Source Tree中找到该文件。
一定要注意安装目录下%LocalAppData%AtlassianSourceTree 新增
account.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 } ]
然后重新打开Source Tree即可