hexo:ERROR 未找到部署者:github
hexo:ERROR Deployer not found: github
问题:
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
这里是部署设置
您必须安装 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 文档以获取更多信息
将类型从 github 更改为 git。
问题:
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
这里是部署设置
您必须安装 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 文档以获取更多信息
将类型从 github 更改为 git。