hexo 上传到github命令报错

hexo 上传到github命令报错

bash 复制代码
D:\Hexo\MyBolg>hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
【无法访问Github仓库地址, 连接失败, 连接被重置】
fatal: unable to access 'https://github.com/your_username/project.git/': Recv failure: Connection was reset
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (D:\Hexo\MyBolg\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
    at ChildProcess.emit (node:events:520:28)
    at ChildProcess.cp.emit (D:\Hexo\MyBolg\node_modules\cross-spawn\lib\enoent.js:34:29)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

可能的解决方法

  1. 在开启加速器的情况下, 经常会遇到这种情况, 可多次尝试上传;
  2. 关闭加速器尝试上传.
  3. 开启虚拟网卡模式, 该模式接管了电脑上所有软件的流量, 包括命令行的Git.
  1. 完成上述操作后再次尝试上传
bash 复制代码
D:\Hexo\MyBolg>hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 16 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.71 MiB | 448.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/your_username/project.git
   0343aba..6a9d8ad  HEAD -> main
branch 'master' set up to track 'https://github.com/your_username/project.git/main'.
INFO  Deploy done: git

这次上传成功.

相关推荐
Mintimate1 小时前
从 Git 贡献记录到人设画像报告:AI Stats Agent 的一次全栈实践
github·边缘计算·agent
华科大胡子3 小时前
GitHub开源项目破圈方法论:从技术自嗨到生态共赢
github
梦想三三5 小时前
Git与GitHub基础入门:从零开始掌握版本控制与代码托管(完整图文教程)
人工智能·git·elasticsearch·github
青禾网络7 小时前
前端做音画匹配这件事,我从"随机塞"到"AI 自动对齐"
前端·github
用户081602610577 小时前
AgentGate:一行命令给你的 AI Agent 加上企业级弹性层
github
怕浪猫9 小时前
面向自我改进的驾驭工程Harness Engineering for Self-Improvement
github·agent·ai编程
hanqunfeng12 小时前
GitHub Actions Workflow 详细指南
github
haluhalu.15 小时前
prompts.chat:03-core-prompting-principles
prompt·github
阿里嘎多学长1 天前
2026-07-10 GitHub 热点项目精选
开发语言·程序员·github·代码托管
今夕资源网1 天前
AI声音克隆软件 CosyVoice今夕一键整合包解压即用 阿里巴巴通义实验室开源 github斩获22K星标
人工智能·github·多国语言·声音克隆·零样本语音克隆·感情·ai语音克隆