当前位置: 代码迷 >> 综合 >> SourceTree 3.3.8 跳过注册安装
  详细解决方案

SourceTree 3.3.8 跳过注册安装

热度:33   发布时间:2023-11-29 16:02:05.0

Git 是广大程序员兄弟们天天见的工具,今天安利一款非常好用的界面化工具:SourceTree
以Windows端为例,最新下载的SourceTree版本为3.3.8,(官网下载地址)跳过注册安装的步骤如下:

  1. 安装SourceTree 3.3.8,执行到选择 bitbucket 的界面不要继续往下走

  2. 然后在你的本地地址栏输入以下路径:

%LocalAppData%\Atlassian\SourceTree\

如果不行就去注册目录找
C:\Users{用户名}\AppData\Local\Atlassian\SourceTree\

  1. 然后在这个文件路径下新建一个名为 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}
]
  1. 打开刚才目录的上一级目录,进入SourceTree.exe_Url_apsrtoxwsrcvqebduamp3kk0yxymyfik\3.3.8.3829\ 下的user.config文件,增加如下代码:
<setting name="AgreedToEULA" serializeAs="String"><value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String"><value>20160201</value>
</setting>
  1. 重新点击SourceTreeSetup.exe安装文件,弹出如下窗口时,选择最后一项安装即可。

我不想使用Mercurial

tips
亲测有效,相对于小乌龟工具来说,更加的直观和方便,欢迎小伙伴们体验使用,如果觉得不错可以点个赞,谢谢!