SourceTree跳转注册的方法

安装好SourceTree,在安装目录创建一个json文件,accounts.json

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。就跳过登陆了。

posted @ 2020-10-28 01:53  doitjust  阅读(95)  评论(0编辑  收藏  举报