Hexo + Github 搭建博客 问题收集
2018-02-24 本文已影响7人
工具速递
使用 hexo d 部署博客出现下面问题
fatal: HttpRequestException encountered.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No error
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io /docs/troubleshooting.html
解决办法:修改站点根目录下配置文件 _config.yml 的 deploy 项,按照如下修改:
修改前:
deploy:
type: git
repo: https://github.com/yourname/yourname.github.io.git
branch: master
修改后:
deploy:
type: git
repo: git@github.com:yourname/yourname.github.io.git
branch: master