Sourcetree 官网:Sourcetree | Free Git GUI for Mac and Windows
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 字段。
- 旧版本登录界面:<br>

- 新版本登录界面:<br>

添加 accounts.json 文件
Sourcetree是一个优秀的git可视化管理工具,深受开发者喜爱Sourcetree官网,但是在安装时需要谷歌账户登录,需要翻qiang才可以,此一点一直被人们所诟病。今天本教程就为大家提供离线免登陆安装教程。
方法很简单,只需在固定目录创建一个文件,即可在安装时跳过注册登录环节。
创建accounts.json文件,accounts.json文件目录位置,在以下目录创建accounts.json文件
注:%LocalAppData%是一个Windows目录可识别变量
%LocalAppData%\Atlassian\SourceTree\accounts.json
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
}
]
本段来自 加了白糖的老干妈 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq_21358931/article/details/80798351
修改 user.config 配置(20190331验证通过)
该文件所在路径:
%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,此时的界面如下所示,


来源:oschina
链接:https://my.oschina.net/u/868789/blog/2208147

