两个尖括号导致部署错误

1
2
$ hexo clean
$ hexo d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
On branch master
nothing to commit, working tree clean
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: http://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (E:\Projects\Source\Repos\_blog\blog\node_modules\hexo-util\lib\spawn.js:52:19)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (E:\Projects\Source\Repos\_blog\blog\node_modules\cross-spawn\lib\enoent.js:40:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  • 排查了挺长时间解决方案就一句话: 去除_congif.ymldeployrepo内的尖括号(也有可能还会附带其它的冗余字符 比如空格什么的)