点击Sourcetree安装运行,会出现下面这个窗口
本地地址栏输入以下路径:
%LocalAppData%AtlassianSourceTree
然后在文件路径下新建一个名为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 } ]
然后再次打开文件夹
%LocalAppData%Atlassian
找到SourceTree.exe_Url_nhyjtvwpwvx05ekrps1xkfsnyqgi52cr文件夹,不同版本的sourcetree文件夹名字可能不一样
在 <SourceTree.Properties.Settings>节点下加入下面配置
<setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting> <setting name="AgreedToEULAVersion" serializeAs="String"> <value>20160201</value> </setting>
重新启动sourcetree,就没有注册界面了,出现下面界面
选择最后一项即可。