美文网首页
sourcetree跳过注册环节

sourcetree跳过注册环节

作者: 别动我名字呀 | 来源:发表于2018-07-27 12:06 被阅读19次

    很多人用git命令行不熟练,那么可以尝试使用sourcetree进行操作。
    然鹅~~sourcetree又一个比较严肃的问题就是,在安装SourceTree的过程中,需要通过账户登录,但注册或登录界面可能根本无法打开,导致软件无法正常安装。

    废话不多,我们直接开始跳过注册阶段的操作。

    一、下载

    下载后可能需要安装NET Framework 4.7.2

    二、破解:安装好之后会有这么一个界面要求你注册或登录。


    image.png

    (不管它)在我的电脑的地址栏输入:%LocalAppData%\Atlassian\SourceTree\,回车打开sourcetree的文件夹;通常长这样:

    image.png

    接下来你应该在当前文件夹下创建一个json文件,文件名为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,sourcetree已经跳过注册环节了。

    相关文章

      网友评论

          本文标题:sourcetree跳过注册环节

          本文链接:https://www.haomeiwen.com/subject/kaiwmftx.html