gpt4 book ai didi

git - hexo:错误未找到部署程序:github

转载 作者:行者123 更新时间:2023-12-02 04:14:52 26 4
gpt4 key购买 nike

问题:

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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e5828c91a5828c918d9087cb868a88" rel="noreferrer noopener nofollow">[email protected]</a>:FantasRu/data-structure-learning.git (fetch)
origin <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="33545a4773545a475b46511d505c5e" rel="noreferrer noopener nofollow">[email protected]</a>:FantasRu/data-structure-learning.git (push)

Screenshot 1

我也推得很好

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

这里是部署设置

Screenshot 2

最佳答案

你必须安装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文档以获取更多信息

关于git - hexo:错误未找到部署程序:github,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34452547/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com