当前位置: 代码迷 >> 综合 >> 【开发软件】SourceTree 3.1.2 以及更高版本完美跳过登陆注册
  详细解决方案

【开发软件】SourceTree 3.1.2 以及更高版本完美跳过登陆注册

热度:27   发布时间:2023-12-15 06:12:19.0

以前我们都是使用3.1以下的版本,但是今天安装了3.1.2版本后,我发现用以前的跳过注册的方式已经失效了,3.1版本往上的版本跳过注册的方式如下:

首先我们需要下载企业版sourcetree,下载地址:https://www.sourcetreeapp.com/enterprise

在安装sourcetree之前,先确保你的电脑上已经安装了Git

点击安装的步骤如图:

安装完成后,先运行一次程序,会出现让你注册的页面:

在文件的地址栏输入

 %LocalAppData%\Atlassian\SourceTree\

进入文件夹,在文件夹下创建文件accounts.json.【注意:一定要确定自己的文件是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}
]

再次打开sourcetree,界面如下:

找到自己安装的git.exe的位置,进入界面如下:

因为安装了Git客户端,就选择我不想使用Mercurial即可,然后就可以下载你自己的文件啦

  相关解决方案