sourcetree 離線免註冊登陸安裝教程

Sourcetree 官網:Sourcetree | Free Git GUI for Mac and Windowshtml

release-3.0.17git

https://www.sourcetreeapp.com/update/windows/beta/SourceTreeBeta-2.4.7-beta-0-full.nupkg
https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.2.6.exe

說明

舊版 sourcetree 只須要添加 accounts.json 文件就能實現免註冊登陸,而新版本則須要 添加 accounts.json 文件和添加 user.config 字段。json

  • 舊版本登陸界面:<br> 舊版本登陸界面
  • 新版本登陸界面:<br> 新版本登陸界面

添加 accounts.json 文件

Sourcetree是一個優秀的git可視化管理工具,深受開發者喜好Sourcetree官網,可是在安裝時須要谷歌帳戶登陸,須要翻qiang才能夠,此一點一直被人們所詬病。今天本教程就爲你們提供離線免登錄安裝教程。windows

方法很簡單,只需在固定目錄建立一個文件,便可在安裝時跳過註冊登陸環節。app

建立accounts.json文件,accounts.json文件目錄位置,在如下目錄建立accounts.json文件工具

注:%LocalAppData%是一個Windows目錄可識別變量.net

%LocalAppData%\Atlassian\SourceTree\accounts.json

accounts.json文件內容3d

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

本段來自 加了白糖的老乾媽 的CSDN 博客 ,全文地址請點擊:http://www.javashuo.com/article/p-xdrswjkm-gu.htmlcode

修改 user.config 配置(20190331驗證經過)

該文件所在路徑:htm

%LocalAppData%\Atlassian\SourceTree.exe_Url_xxxxxxxxxx\3.1.2.3027\user.config

記事本打開 user.config,在 <SourceTree.Properties.Settings> 添加如下內容並保存便可。

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

打開 sourcetree,此時的界面以下所示,

相關文章
相關標籤/搜索