window hexo 部署到github

发布于 2022-09-02 00:08:57 字数 1492 浏览 14 评论 0

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我乃一代侩神 2022-09-09 00:08:57

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

生来就爱笑 2022-09-09 00:08:57

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

百度传送门

孤者何惧 2022-09-09 00:08:57

你的key没添加到github上把,测试下ssh -T git@github.com,成功的话在github上的ssh key就是一个小绿点!

童话里做英雄 2022-09-09 00:08:57

先分解下找到问题所在,
hexo g 看是否能编译成静态文件
然后再hexo d 看是否能提交

我也是最近才搭建的hexo博客,网上资料确实有很多坑,可以参考下我搭建的流程:
在github上使用hexo搭建博客

提笔落墨 2022-09-09 00:08:57

key 没问题,但是还是出现这种问题,无语了,每过一段时间不用hexo,就会出现各种问题,遂重装hexo解决

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文