git - sourcetree 免注册安装

转载:https://www.cnblogs.com/leohe/p/6726120.html

在安装Bitbucket推荐的客户端sourcetree时需要注册,而注册时不FQ是收不到验证码的。不愿FQ,网上搜索的解决办法如下(测试有效):

1.安装sourceTree,提示需要登录时,到目录:C:\Users\用户\AppData\Local\Atlassian\SourceTree

2.在上述文件夹中新建文本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
  }
]

 

3.重新安装SourceTree即可。

 

posted @ 2018-01-16 15:21  暗夜影  阅读(366)  评论(0编辑  收藏  举报