window hexo 部署到github


hexo d -g

出现以下错误


 d by CRLF in vendors/velocity/velocity.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendors/velocity/velocity.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendors/velocity/velocity.ui.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vendors/velocity/velocity.ui.min.js.
The file will have its original line endings in your working directory.
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: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

    at ChildProcess.<anonymous> (E:\zan\www\gitpages\hexo\vuecn.github.io\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

ssh 配置 好了
手动提交的是可以提的

hexo d -g 就不行

如何破 ? 大神指导一下吗?

github ssh hexo

做怪兽自豪! 9 years, 3 months ago

Error: Permission denied (publickey).
这个是关键,要在 github 上设置ssh key

百度传送门

哔。。你妹 answered 9 years, 3 months ago

提交到gitub先是hexo g,然后hexo d
你可以参考一下这篇博客: http://neo1218.github.io/2015/04/18/post15/

火炎之纹章 answered 9 years, 3 months ago

Your Answer