转载地址:https://blog.csdn.net/power_to_go/article/details/101059023
0. 安装 Git
- 下载并执行SourceTreeSetup-2.5.5.exe,会进入以下界面。
- 关闭这个界面。
- C:\Users\young\AppData\Local\Atlassian\SourceTree 添加accounts.json 文件
C:\Users\young\AppData\Local\Atlassian\SourceTree
young 为用户名。换成自己的。
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
}
]
- C:\Users\young\AppData\Local\Atlassian\SourceTree.exe_Url_n222km3wptgdvxwmgelnuodyl5shfgjb\2.5.5.3544 修改 user.config
configuration userSettings SourceTree.Properties.Settings 之下添加以下 6 行内容
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
- 重新点击安装 SourceTreeSetup-2.5.5.exe
- 不安装 Mercurial
- 成功跳过注册: