SourceTree安装时跳过登录

点点圈 提交于 2019-12-06 19:59:21

今天单位的git炸了,第N次,而且这次居然换了新的服务器,甲方的运维git的配置权限有问题导致source直接clone一直失败,报本地缺文件的错误,博主怀疑人生真的去下了新的SourceTree,最后却困在授权,还好发现这个文章,赶紧收藏!

 

安装 SourceTree 时,需要使用atlassian授权,即使翻墙这个过程也会出现反应慢,收不到邮件或短信的问题,现提供跳过 atlassian账号 授权方法。

 

 

 

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

%LocalAppData%\Atlassian\SourceTree\

 

请把以上路径直接粘贴到我的电脑路径的位置跳转,才能跳转到正确位置

 

新建 accounts.json 文件

%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
  }
]

复制代码

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!