SourceTree怎么跳过Atlassian账号登录

第一次安装后,找到C:/Users/jiang(你的系统账号用户名)/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
  }
]

保存后再次安装,
会弹出Mercurial询问窗口,使用第四个选项"我不想使用Mercurial"。就可以跳过Atlassian账号登录直接使用软件啦

你可能感兴趣的:(git,sourcetree)