如何跳过sourceTree登录

第一步:

 

编写一个accounts.txt文件,写入以下代码,然后改成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

  }

]

将accounts.json文件放入%LocalAppData%\Atlassian\SourceTree目录中

第二步

%LocalAppData%\Atlassian下面的SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef文件夹下面的文件夹

 

找到user.config文件,添加下列代码。    

            

                True

            

            

                20160201

            

 

第三步:重启sourcetree

你可能感兴趣的:(如何跳过sourceTree登录)