部署hexo时出错:fatal: Could not read from remote repository.Error: Spawn failed

在部署hexo执行下面代码时:

1
$ hexo d

出现错误:

1
2
3
4
5
6
7
8
9
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:字段写错了。
正确的应为:

1
2
3
4
5
6
deploy:
- type: git
repo:
git@github.com:mengyaShen/mengyaShen.github.io.git
branch: master
- type: baidu_url_submitter

重新部署,成功。

我们一起来让这个世界有趣一点……ヽ(✿゚▽゚)ノ