SourceTree skips initial setup

How to skip the initial setup, just add a accounts.jsonfile to the installation path. Among them, the default installation path in Windows: %LocalAppData%\Atlassian\SourceTree\, you can find this file in the Source Tree that is normally registered and used.

 

Be sure to pay attention to the addition of %LocalAppData%\Atlassian\SourceTree\ in the installation directory

account.jsonContent

 

[
  {
    "$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
  }
]

 

 

Then reopen Source Tree

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326217819&siteId=291194637
Recommended