hexo无法上传到github 试了各种办法依然无法成功,小白求助


提示如下,本地localhost:4000是可以打开的

$ hexo d
INFO Deploying: git
INFO Clearing .deploy folder...
INFO Copying files from public folder...
warning: LF will be replaced by CRLF in 2015/09/10/hello-world/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2015/09/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2015/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fonts/fontawesome-webfont.svg.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working directory clean
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
Error: 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


 at ChildProcess.<anonymous> (E:\Hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

github hexo blog

MI‘饭’ 9 years, 3 months ago

我也遇到过这样的问题,不过我把_config.yml中的repository 改了成了ssh,
我的_config.yml文件是这样的。


 deploy:
  type: git
  repository: ssh://[email protected]/xiaoliuzi/xiaoliuzi.github.io
  branch: master

https://github.com/hexojs/hexo/issues/1503

希望可以帮到你。

星D在り処 answered 9 years, 3 months ago

感觉应该是你在github上创建的博客项目有问题,建议按照下面的教程重新尝试一次:

http://www.pchou.info/web-build/2013/01/05/build-github-blog-page-02.html

哆啦啦没有头 answered 9 years, 3 months ago

目测从两方面看问题:
1、是否是用自己的 用户名 创建了一个项目;
2、配置文件是是否OK。

曾我萤娜_ answered 9 years, 3 months ago

hexo-deployer-git没有配置好

Wsyjn answered 9 years, 3 months ago

atal: could not read Username for 'https://github.com': No error
你的github账户配置出问题了,重试一下

ck一支竹 answered 9 years, 3 months ago

你可以先用git把public上传到github.io,并命名为你的github账户名,先这样试试看看pages是否有用,再定位问题的原因;
https://pages.github.com

Treow answered 9 years, 3 months ago

Your Answer