在部署hexo执行下面代码时:
$ hexo d
出现错误:
On branch master
nothing to commit, working tree clean
git@git.coding.net: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
查了一些资料后发现是因为在设置百度主动推送的时候,站点配置文件中deploy:字段写错了。
正确的应为:
deploy:
- type: git
repo:
git@github.com:mengyaShen/mengyaShen.github.io.git
branch: master
- type: baidu_url_submitter
重新部署,成功。