SourceTree3.2.6版本跳过注册办法
SourceTree3.2.6版本跳过注册办法
一、去sourceTree官网下载最新的包
官网:https://www.sourcetreeapp.com/
windows版下载地址:https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.2.6.exe?_ga=2.240708419.1383101182.1574670384-200523786.1574670384
二、执行下载的exe包
接着下载并执行SourceTreeSetup-3.2.6.exe,会进入登录或注册bitbucket的界面,我只是想用软件,并不想去注册账号。
到了注册页面后关闭页面。
三、配置账号信息
关闭上述安装窗口后,打开 %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 } ]
用户配置:
打开 %LocalAppData%\Atlassian,进入"SourceTree.exe_Url_nn1m0zxifrz542zaokz0zdglt1dyzdcn\3.2.6.3544"
打开user.config文件,在里面加入六行代码。
<setting name="GitWhichOne" serializeAs="String"> <value>1</value> </setting> <setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting>
四、再次执行exe包
再次执行SourceTreeSetup-3.1.3.exe,弹出Mercurial询问窗口,可以根据实际情况做相应的选择,比如使用默认选项下载Mercurial,或者使用第四个选项“我不想使用Mercurial”。