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 就跳過了登錄注冊賬戶環節, 而直接可以使用了!


免責聲明!

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



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