sourcetree免注册方法

step1:json

https://www.sourcetreeapp.com/官网下载windows版软件windows

step2:app

右键-->以管理员身份运行,便安装成功了spa

step3:code

安装好以后会有这么一个界面要求你注册或登陆,没必要理会。将下面的一串串放进"个人电脑"的地址栏,打开sourcetree的文件夹blog

%LocalAppData%\Atlassian\SourceTree\

如图所示:it

step4:class

在sourcetree目录下,新建一个accounts.json的文件,并用editplus或者notepad++打开,将下述代码复制进去登录

[
  {
    "$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
  }
]

保存文件,从新启动source客户端便可软件