Sourcetree 官網:Sourcetree | Free Git GUI for Mac and Windowshtml
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
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
該文件所在路徑: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,此時的界面以下所示,