github+dexo搭建博客时dexo d出错的解决办法

本文详细记录了在部署GitHub博客时遇到的错误,当执行dexod命令时出现的推送失败问题,以及如何通过删除.deploy_git文件并重新部署来解决这一问题。文中还提供了具体的错误信息和解决方案步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

部署github博客是部署的时候执行dexo d命令时报以下错误

var foo = 'bar';error: src refspec HEAD does not match any error: failed to push some refs to 
'https://github.com/bing/bing.github.io.git' FATAL Something's wrong. Maybe you can find the solution here: 
https://hexo.io/docs/troubleshooting.html Error: Spawn failed at ChildProcess.<anonymous> (E:\blog\node_modules\hexo-
util\lib\spawn.js:51:21) at ChildProcess.emit (events.js:210:5) at ChildProcess.cp.emit (E:\blog\node_modules\cross-
spawn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

解决办法:

  1. 删除.deploy_git文件后重新部署

  2. 依次执行

dexo clean
dexo g
dexo d
  1. 根目录下的_config文件中的
// An highlighted block
deploy: 
  type: git 
  repository: https://github.com/bing/bing.github.io.git 
  email: xihuRiver@xihuRiver.com 
  name: xihuRiver
  branch: master 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值