SourceTree 免登陸跳過注冊


點擊Sourcetree安裝運行,會出現下面這個窗口

 

本地地址欄輸入以下路徑:

%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
  }
]

然后再次打開文件夾

%LocalAppData%\Atlassian\

找到SourceTree.exe_Url_nhyjtvwpwvx05ekrps1xkfsnyqgi52cr文件夾,不同版本的sourcetree文件夾名字可能不一樣

 

 在 <SourceTree.Properties.Settings>節點下加入下面配置

<setting name="AgreedToEULA" serializeAs="String">
        <value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
        <value>20160201</value>
</setting>

 

重新啟動sourcetree,就沒有注冊界面了,出現下面界面

 

 選擇最后一項即可。


免責聲明!

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



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