Windows 版 SourceTree 免登陆跳过初始设置的方法

首先去官网下载最新的sourcetree安装包,点击打开下载地址html

  下载完成后安装,等到他自启动开始提示你登陆的时候,打开“个人电脑(此电脑)”,在最上边的输入栏输入%LocalAppData%\Atlassian\SourceTree\以后回车,会自动打开sourcetree的目录。json

     而后在自动打开的目录里边建立一个accounts.json。而后把下边的代码粘贴进去而后保存。app

    

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

  

    重启sourcetree,便可直接进入操做界面。工具

    有人问json文件怎么建立~最简单粗暴的方法,咱们都是搞程序的,都有IDE工具,在你的工程目录上新建文件,能够选json的。常规操做是,在根目录下边建一个文本文档,而后“另存为”,在另存的时候把文档类型改成“全部文件”,而后在输入文件名的时候要写全,加上后缀,保存后将记事本文件删除便可。相似的很是规文件类型好比.bat,.js,.html均可以这样建立。3d

    

相关文章
相关标签/搜索