下载SourceTree,下载地址:https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.1.3.exe
若上面的地址无效了,可以访问:链接: https://pan.baidu.com/s/1MIqyqEdm77ZGOGn19ZrFkw 提取码: 6d56
接下来就是安装了SourceTree了。
点击”SourceTreeSetup-3.1.3.exe”,然后会提示注册一个账号。此时,关闭此安装过程,然后在地址栏上输入以下路径:
%LocalAppData%\Atlassian\SourceTree\
然后再在里面创建一个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
}
]
进入AppData\Local\Atlassian\SourceTree的上一层,分别配置:
SourceTree.exe_Url_5yoa13qlgvkvzlqygk4igfht1zisrb4w\3.1.3.3158\user.config
在
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
SourceTree.exe_Url_gndlaoeh2iwzbvhp3dmwn4vu2enmze4e
在
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>