SourceTree 免登錄跳過初始設置


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

 

SourceTree 安裝之后需要使用賬號登陸以授權,以前是可以不登陸的,但是現在是強制登陸。

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

 

安裝之后,轉到用戶本地文件夾下的 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
  }
]

現在再打開 SourceTree,直接顯示主窗口了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM