SourceTree 版本跳过bitbucket注册方法


1、安装sourcetree时 需要选择 bitbucket账号,这个令人头疼

     当然肯定有办法来跳过这一步

2、关闭当前安装界面

     进入   C:\Users\Administrator\AppData\Local\Atlassian\SourceTree   目录下

    新建文件  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
  }
]

 

3、然后返回到父目录下,进入到 SourceTree.exe_Url_eokpufuqmdj0jrg3pcijipnt33btnzjl目录,然后进入到 3.3.6.3829

    这两个目录 不同的sourceTree版本 后面的可能略微有点不同,找到 user.config  文件

    在 <SourceTree.Properties.Settings>  这一行下面新加以下内容

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

  保存

4、再次点击SourceTree.exe 安装文件 便跳过了第一步


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM