Fork me on GitHub

sourceTree安装时跳过登录

1.访问官网,下载安装包,官网下载地址

2.双击安装包开始安装,出现如下页面后关闭(已安装):

3.使用运行或资源管理器输入%LocalAppData%\Atlassian\SourceTree\进入当前用户的SourceTree目录

4.新建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
  }
]

5.通过%LocalAppData%\Atlassian\进入当前用户的Atlassian目录,找到SourceTree.exe_Url_xxxx/3.xxxxx/user.config文件,增加如下内容:

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

6.再次打开桌面上的SourceTree快捷方式,显示已登入。

End

posted @ 2021-09-19 23:56  流柯  阅读(271)  评论(0编辑  收藏  举报
访客: 浏览: