win10 安装sourcetree跳过注册

参考文章: Windows10 下安装SourceTree 跳过注册 Bitbucket

前提: 已安装git

  1. 在sourcetree官网 下载 windows版的 sourcetree 安装包,我的是 SourceTreeSetup-3.3.8.exe
  2. 双击安装,会出现 需要 注册账号部分的界面
  3. 关闭这个sourcetree 安装界面
  4. C:Users当前用户文件夹AppDataLocalAtlassianSourceTree添加 一个文件名为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
  }
]
  1. 编辑目录 C:Users当前用户文件夹AppDataLocalAtlassianSourceTree.exe_Url_ul4qrk3hz4zqb14vcaiypmrdv255kkqk3.3.8.3848 下的 user.config 文件

configuration -> userSettings -> SourceTree.Properties.Settings 节点添加以下内容:

<setting name="AgreedToEULA" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="AgreedToEULAVersion" serializeAs="String">
                <value>20160201</value>
            </setting>
  1. 重新点击可执行文件SourceTreeSetup-3.3.8.exe,选择最后一项:我不想要mercurial
原文地址:https://www.cnblogs.com/fsong/p/13663967.html