最近由于疫 * 情缘故,公司组织大家居家办公,因此需给家里的电脑配置环境,重新安装SourceTree这个Git管理工具。
以Windows端为例,最新下载的SourceTree版本为3.3.6,跳过注册安装的步骤如下:
1. 安装SourceTree 3.3.6,执行到选择 bitbucket 的界面退出。
2. 到 C:Users{用户名}AppDataLocalAtlassianSourceTree 这个路径下创建 accounts.json ,并复制如下代码到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 } ]
3. 打开SourceTree.exe_Url_apsrtoxwsrcvqebduamp3kk0yxymyfik3.3.6.3829下的user.config文件,增加如下代码:
<setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting> <setting name="AgreedToEULAVersion" serializeAs="String"> <value>20160201</value> </setting>
4. 重新点击SourceTree.exe安装,弹出如下窗口时,选择最后一项安装即可。
5. 亲测有效