新版Git无法跳过注册解决方案

今天重新装了一下sourcetree,但是账号驻村步骤一直无法跳过,查找了很多网上的资料发现,基本上都是说在sourcetree文件夹下添加accounts.json文件,但是发现并不起作用,也就是说无法跳过。再多次尝试之后,发现网上提供的一种可行方法:

首先我们需要下载企业版sourcetree,下载地址:https://www.sourcetreeapp.com/enterprise

安装sourcetree之前,确保已经安装过了Git,然后正常安装sourcetree
安装完成之后,点击打开sourcetree,发现需要注册,此时关闭界面,进入%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
  }
]

添加完成之后,然后再次重新启动sourcetree,检测完Git之后,选择我不想使用Mercurial,就可以直接跳过注册了

文章参考:https://blog.csdn.net/robin_sky/article/details/89059084
感谢作者

你可能感兴趣的:(新版Git无法跳过注册解决方案)