新版SourceTree没法注册

SourceTree 免登陆跳过初始设置html

 

SourceTree 安装以后须要使用帐号登录以受权,之前是能够不登录的,可是如今是强制登录。json

虽然是免费受权,可是碰上不可抗力因素,登录不是很方便,这里记录一下跳过这个初始化的步骤。post

 

安装以后,转到用户本地文件夹下的 SourceTree 目录,没有则新建url

%LocalAppData%\Atlassian\SourceTree\

新建 accounts.json 文件.net

%LocalAppData%\Atlassian\SourceTree\accounts.json

输入如下内容保存便可htm

复制代码

[
  {
    "$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,直接显示主窗口了blog

 

原文地址:https://blog.csdn.net/zcbyzcb/article/details/72959720?locationNum=2&fps=1get