• Hexo笔记 #02# 手动部署到GitHubPages&Unknown SSL protocol error


    通过工具(hexo-deployer-git)自动部署博客到github时遇到

    fatal: unable to access 'https://github.com/xkfx/xkfx.github.io/': Unknown SSL protocol error in connection to github.com:443
    FATAL {
      err: Error: Spawn failed
          at ChildProcess.<anonymous> (D:\github\my_blog_src\node_modules\_hexo-util@2.5.0@hexo-util\lib\spawn.js:51:21)
          at ChildProcess.emit (node:events:390:28)
          at ChildProcess.cp.emit (D:\github\my_blog_src\node_modules\_cross-spawn@7.0.3@cross-spawn\lib\enoent.js:34:29)
          at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
        code: 128
      }
    } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

    经测试,github网站访问正常,其它项目正常push,考虑手动部署。

    通过git clone下载xxxx.github.io到本地,测试push正常

    一,通过hexo clean & hexo g更新静态文件;

    二,将xxxx.github.io中除.git文件夹外的文件删除;

    三,把"hexo项目根目录"\public文件夹下的内容复制粘贴到xxxx.github.io中

    通过git add --all & git commit -m "xxx" & git push origin xxx完成部署。

  • 相关阅读:
    场景调研
    手机搜狗输入法体验
    1到一个整数之间1的个数
    寻找水王
    成套卖书最大优惠问题
    面向对象--多态
    抽象类和接口
    面向对象思想--继承
    面向对象思想--封装
    变量和参数传递
  • 原文地址:https://www.cnblogs.com/xkxf/p/15780650.html
Copyright © 2020-2023  润新知