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

这次上传成功.

相关推荐
LinXunFeng1 小时前
Obsidian - 使用 Share Note 分享笔记并自部署
前端·笔记·github
DayDaydream6 小时前
7 天涨了 8000+ Star,Agent Reach 想给 AI 装上互联网眼睛
github
天衍四九2 天前
Git从0到实战(四):冲突解决与版本回退 —— 别怕,出错了也能救
github
大刚测试开发实战2 天前
如何内网穿透访问本地私有化部署的TestHub
前端·后端·github
uhakadotcom2 天前
在python 的 工程化架构中 ,什么是 薄包装器层?
后端·面试·github
Avan_菜菜3 天前
AI 能写代码了,为什么我反而开始要求它先写文档?
前端·github·ai编程
逛逛GitHub3 天前
这个爆红的 GitHub 项目让 token 直接省 60–95%。
github
iccb10133 天前
5年,一个程序员是如何把私有化在线客服系统做到第一名的
前端·后端·github
蝎子莱莱爱打怪3 天前
AI Agent 相关知识扫盲:16 个概念+11张图+38个开源项目推荐
人工智能·github·agent
用户317723070364 天前
Pydub:用 Python 处理音频,不写废话
github