SourceTree 免登陸跳過初始設置

原文:http://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.htmlhtml

 

SourceTree 安裝以後須要使用帳號登錄以受權,之前是能夠不登錄的,可是如今是強制登錄。json

雖然是免費受權,可是碰上不可抗力因素,登錄不是很方便,這裏記錄一下跳過這個初始化的步驟。spa

 

安裝以後,轉到用戶本地文件夾下的 SourceTree 目錄,沒有則新建code

%LocalAppData%\Atlassian\SourceTree\

新建 accounts.json 文件htm

%LocalAppData%\Atlassian\SourceTree\accounts.json

輸入如下內容保存便可blog

[
  {
    "$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,直接顯示主窗口了it

相關文章
相關標籤/搜索