SourceTree安装添加account.json文件,无法跳过注册过程

本文来自:晓之家,原地址:http://lichengxiao.cn/22.html

工作中遇到部分同事不习惯用Git命令行方式进行代码管理,就试着帮忙安装SourceTree。安装过程中发现SourceTree 3.3.8版本跳过注册步骤有些特殊,这里做下记录。

1、双击“SourceTreeSetup-3.3.8.exe”运行SourceTree安装程序,稍后可以看到安装程序直接跳到注册登陆界面,如下图:

2、关闭安装程序,打开Windows资源管理器在地址栏输入:%LocalAppData%\Atlassian\ 按回车键,转到SourceTree安装目录。

3、在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
  }
]

4、在SourceTree.exe_Url_clbecxc3xgbdmkfbnskxiuxqslvhuo5z\3.3.8.3848\user.config文件</SourceTree.Properties.Settings>节点前添加下述内容:(注:红色字符串是根据系统环境随机生成的,请根据实际情况进入到指定目录操作)

#user.config

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

5、再次双击“SourceTreeSetup-3.3.8.exe”运行SourceTree安装程序,即可跳过注册步骤完成安装操作。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值