sourcetree安装后跳过登录

1.安装之后,转到用户本地文件夹下的 SourceTree 目录,没有则新建C:\Users\用户\AppData\Local\Atlassian\SourceTree (或者 %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 
  } 
] 

 

posted @ 2020-09-03 17:38  vvf  阅读(122)  评论(0编辑  收藏  举报