SourceTree 免登錄跳過初始設置 - 轉


轉自:http://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html

在SourceTree的配置目錄新建(或修改)accounts.json為如下內容。配置目錄一般位於:C:\Users\Administrator\AppData\Local\Atlassian\SourceTree,該目錄需先啟動一次SourceTree才會被生成(一般安裝完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
  }
]
復制代碼

 

 -------特別說明下-------

要想ssh私鑰和Linux下的通用,要將SourceTree一般選項下的SSH Client類型改為OpenSSH


免責聲明!

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



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