首页 > 其他分享 >SourceTree的安装跳过注册账户

SourceTree的安装跳过注册账户

时间:2022-10-30 16:15:19浏览次数:37  
标签:3.0 跳过 id Host 注册 type SourceTree

今天安装sourcetree一直卡在注册界面,后来使用以下方法跳过注册步骤,亲测可用。
1、地址栏直接输入%LocalAppData%\Atlassian(或者可以选择下载个EveryThing,搜索到目标文件夹),接着进入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
  }
]

2、然后打开
C:\Users\rzrk\AppData\Local\Atlassian\SourceTree.exe_Url_taescgdbljrql123vq3hh3bdkwbspxcm\3.0.8.2279下的user.config文件(不同版本路径有所不同,我的是3.0.8.版本),增加如下代码:

<setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
    <value>20160201</value>
</setting>

3、重新点击SourceTreeSetup-3.0.8.exe安装,当弹出窗口时,选择最后一项安装即可(不注册账号)。
亲测有效。

标签:3.0,跳过,id,Host,注册,type,SourceTree
From: https://www.cnblogs.com/Sultan-ST/p/16841477.html

相关文章