sourceTree

sourceTree 跳过登录的方法

# 原文https://www.cnblogs.com/SkyflyBird/p/10834780.html

# 1. 进入本地 SoureTree 目录,命令:

%LocalAppData%\Atlassian\SourceTree\

# 2. 新建 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. 再次尝试点击下载完成的 exe 文件,如果依然没有跳过登录,请通过命令

%LocalAppData%\Atlassian\

# 4.然后依次打开 SourceTree.exeUrl

3.1.2.3027/user.config 文件,添加如下内容:

<setting name="AgreedToEULAVersion" serializeAs="String">
  <value>20160201</value>
</setting>
上次更新: