SourceTree 跳过登录注册,直接使用

SourceTree下载安装后,运行程序会要求你登录或注册账号才能使用,

然而登录或注册基本都收不到服务器的响应 (在国外嘛,安全起见),于是卡在此处无法使用了.

下面就来介绍一下跳过这尴尬环节的方法:

1.打开资源管理器, 将下面的代码复制到地址栏,打开sourcetree的文件夹

%LocalAppData%\Atlassian\SourceTree\

 

2.在该文件夹下创建一个json文件,文件名为accounts.json, 复制下面的代码到 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, 大功告成 ! 

4.可能会遇到关闭登录界面后退出了安装的情况,再次运行安装文件即可

 

至此 SourceTree 就跳过了登录注册账户环节, 而直接可以使用了!

posted @ 2018-09-04 23:10  你怪哉  阅读(6047)  评论(0编辑  收藏  举报