sourcetree跳過登錄的方法


sourcetree是款免費的Git可視化工具,對於版本庫較小的Git項目進行管理非常方便。但是sourcetree安裝后第一次使用需要登錄bitbucket帳號(最新版),由於某些原因登錄帳號有困難,下面介紹一下如果跳過登錄。

1、安裝sourcetree

2、安裝之后,轉到用戶本地文件夾下的 SourceTree 目錄,沒有則新建

%LocalAppData%\Atlassian\SourceTree\

3、新建 accounts.json 文件

4、輸入以下內家保存即可

[
  {
    "$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
  }
]

5、再次打開sourcetree不再提示登錄


免責聲明!

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



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