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
就不行
如何破 ? 大神指导一下吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
提交到gitub先是hexo g,然后hexo d
你可以参考一下这篇博客:http://neo1218.github.io/2015/04/18/post15/
Error: Permission denied (publickey).
这个是关键,要在 github 上设置ssh key
百度传送门
你的key没添加到github上把,测试下ssh -T git@github.com,成功的话在github上的ssh key就是一个小绿点!
先分解下找到问题所在,
先
hexo g
看是否能编译成静态文件然后再
hexo d
看是否能提交我也是最近才搭建的hexo博客,网上资料确实有很多坑,可以参考下我搭建的流程:
在github上使用hexo搭建博客
key 没问题,但是还是出现这种问题,无语了,每过一段时间不用hexo,就会出现各种问题,遂重装hexo解决