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

这次上传成功.

相关推荐
gwf21617 小时前
SSD读写速度深度解析:顺序读写vs随机读写、IOPS、延迟,你的硬盘性能到底怎么看?
git·嵌入式硬件·缓存·github·智能硬件
笨鸟先飞,勤能补拙1 天前
下一个十年:网络安全正在被重写
网络·人工智能·安全·web安全·网络安全·github
潘正翔1 天前
k8s进阶_Harbor镜像仓库
git·云原生·容器·kubernetes·gitee·github
vibecoding771 天前
GitHub 2026 年 7 月热榜:累计 Star 总榜与月度飙星榜
人工智能·github·ai编程
Pniubi1 天前
Gitee&GitHub同步仓库教程
gitee·github
TunerT_TQ1 天前
GitHub深度工程评测:AI 系统提示词泄露知识库深度评测:6万星system_prompts_leaks情报资产背后,藏着什么?
人工智能·chatgpt·github·提示词工程·#valhalla静态工程审阅·systemprompt·大模型工程
Python私教1 天前
GitHub Actions 实战:把测试、密钥扫描与 Docker 镜像检查接入 CI
ci/cd·docker·github·devsecops·github actions
茉莉玫瑰花茶1 天前
TCP 全连接队列与 tcpdump 抓包
git·github·tcp·tcpdump
炸膛坦客1 天前
Git 和 GitHub:(十四)rebase 到某个有新提交的远程仓库的分支
git·github
小弥儿1 天前
GitHub今日热榜 | 2026-07-31:AI Agent工作流共享赛道升温
人工智能·学习·github