windows 环境安装 sourcetree
下载安装的步骤就不在废话了
在目录C:\Users\{youruser}\AppData\Local\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": "username@email.com" }, "IsDefault": false } ]
新版本需要修改 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>
搜了很多教程都没有这一步,搞了半天都没搞好,还以为是自己的原因,还好在一个评论区找到了这一段,感谢。