SourceTree跳过注册直接安装使用
1.下载SourceTree安装程序,下载地址
2.完成后点击一次安装程序(打开就好,然后关闭这个程序,去C盘)
3.关闭安装程序,打开C:\Users\你的电脑用户名字\AppData\Local\Atlassian\SourceTree在这个文件下面打开cmd命令输入type nul>accounts.json
4.在创建的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 } ]
5.一般情况下就可以直接跳过安装,直接打开了,如果不行,找到C:\Users\你的电脑用户名称\AppData\Local\Atlassian\SourceTree.exe_Url_ex1vftiaad3nu2wlmzlbh44lcwjelo3v\3.3.8.3848\user.config文件(记事本、vscode打开即可)
6.再打开的文件中找到这段代码
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
7.在它后面添加这段代码,保存然后重新打开安装程序就直接跳过安装程序了
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
越努力越幸运!