hexo d失败可以用git clone github仓库地址然后用hexo public目录替换后使用授权github仓库账号执行git push操作替代hexo d
fatal: bad tree object 76efcae7c5c88277bd54626c763b790961115445
fatal: the remote end hung up unexpectedly
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
error: failed to push some refs to ‘https://xxx.git‘
FATAL Something’s wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.(D:\promptonce-blog\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:519:28)
at cp.emit (D:\promptonce-blog\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
清空public目录下的文件
克隆托管hexo博客的github仓库,将除.git的文件及目录复制到public目录中
将原来根目录的.git目录删掉
将克隆下来的目录的.git移动到根目录
执行命令
1 | hexo clean |