SourceTree 3.x.x 跳过登录跳过注册

目录:C:\Users\{用户}\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": "",
      "Email": null
    },
    "IsDefault": false
  }
]

再进入目录: C:\Users\{用户}\AppData\Local\Atlassian\SourceTree.exe_Url_tjbt5p1kojzyitrzivajyj4ytxnk5zmi  

接着打开类似 ‘ 3.3.6.3829 ’ 的目录,打开 user.config 并加入以下代码

<setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
    <value>20160201</value>
</setting>

这些代码置于 setting标签同级。保存后重启安装程序,若弹出Mercurial询问窗口,选择第一个选项下载即可

 

posted @ 2020-02-03 12:10  晨の风  阅读(871)  评论(0编辑  收藏  举报