window10安装免注册登录版sourceTree

下载

  1. 先下载企业版sourceTree,(普通版account.json跳过登陆注册方法已失效) 需要安装企业版 https://www.sourcetreeapp.com/enterprise
    1. 如果不想去官网下载或者进不去,这儿有分享:
      https://pan.baidu.com/s/1Ly48nicxiJhLKqJ-QLJFYw ​​​​​​​
      提取码: aire
  2. 安装完成之后先点击运行一遍,就可以在C:\Users\jack\AppData\Local下生成\Atlassian\SourceTree目录。会要求登录/注册
  3. 企业版默认安装在 C:\Program Files (x86)\Atlassian\Sourcetree 目录,该路径下新建accounts.json文件,内容同下
  4. 在C:\Users\jack\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
      }
    ]
  5. 以上两个文件新建完成之后就可以点击运行了

可能的问题

  1. 安装完成之后要先点击运行才会在C:\Users\jack\AppData\Local\下生成sourceTree目录,才可以新建json文件
  2. 如果之前有安装过sourceTree的话,按照以上步骤可能安装失败,所以需要先彻底卸载以前的sourceTree
    1. 卸载步骤:打开控制面板,找到sourceTree直接卸载
    2. 之后需要打开注册表,window+R键,然后输入regedit 打开注册表,ctrl+f 查找sourceTree,把所有搜索到的sourceTree文件删掉。注意:查找的时候可能会只可以一次查找一个,所以,需要多次查找,直到再也查不到为止。
发布了24 篇原创文章 · 获赞 8 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_43869192/article/details/85272322