【问题标题】:hexo:ERROR Deployer not found: githubhexo:ERROR Deployer not found: github
【发布时间】:2015-12-24 12:04:59
【问题描述】:

问题:

hexo-blog$ hexo deploy

ERROR Deployer not found: github

那我就这样做

Hi XXXXXX! You've successfully authenticated, but GitHub does not provide shell access.

和

hexo-blog$ git remote -v
origin  git@github.com:FantasRu/data-structure-learning.git (fetch)
origin  git@github.com:FantasRu/data-structure-learning.git (push)

和

我也推得很好

Spider$ git push origin master

Counting objects: 9, done.

Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.

Writing objects: 100% (9/9), 41.43 KiB | 0 bytes/s, done.

Total 9 (delta 1), reused 0 (delta 0)

To https://github.com/FantasRu/Spider.git

174fcd0..2fc6d48  master -> master

那么我的 hexo 出了什么问题,为什么不能连接 git

这里是部署设置

【问题讨论】:

    标签: git github hexo


    【解决方案1】:

    您必须安装 hexo-deployer-git 才能在指定分支上使用 git 部署生成的站点。

    npm install hexo-deployer-git --save
    

    请注意,使用您当前的配置,您将删除 master 分支上的所有源代码。我建议您部署在gh-pages 上,以便在https://github.com/username/repository_name 上自动访问

    deploy:
        type: git
        repo: <repository url>
        branch: gh-pages
    

    阅读hexo - deployment 文档了解更多信息

    【讨论】:

      【解决方案2】:

      将类型从 github 更改为 git。

      【讨论】:

        猜你喜欢
        • 2022-01-28
        • 2020-11-28
        • 2020-07-26
        • 2020-08-11
        • 2020-10-23
        • 2015-05-10
        • 2020-06-14
        • 1970-01-01
        • 2021-12-27
        相关资源
        最近更新 更多