SourceTree installation skip registration use

Problem Description

SourceTree is a tool for visually managing version files, but you need to open a foreign website when registering. Therefore, you need to bypass this step when you want to install it before you can use it.

After downloading, install it directly:

Click Next and it will appear to let you register:

At this time, close the installation package and enter this directory:

C:\Users\LIH\AppData\Local\Atlassian, where LIH is your username

Create the accounts.json file under this directory:

The content is as follows:

 

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

After saving, go to this directory:

 Find the user.config file, in this file

 Add the following content in the  configuration ->  userSettings ->  SourceTree.Properties.Settingsnode:

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

 

After saving, click the exe file again and find that the registration of a company is complete.

Then you can pull the code:

 

 

 

 

Guess you like

Origin blog.csdn.net/lchmyhua88/article/details/110929442