sourcetree 离线免注册登录安装教程

此生再无相见时 提交于 2019-12-06 19:59:06

Sourcetree 官网:Sourcetree | Free Git GUI for Mac and Windows

release-3.0.17

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,此时的界面如下所示,

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!