hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.54k stars 4.86k forks source link

求助 fatal: 'furtee.github.com' does not appear to be a git repository #29

Closed trai25 closed 11 years ago

trai25 commented 11 years ago

我按照 Doc 里提供的流程安装了 hexo, 本地4000端口能够预览,但是输入 hexo deploy 命令后出现如下错误,请问如何解决呢?

fatal: 'furtee.github.com' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

而且好像我的 master 分支也不对头,能否帮我看看 https://github.com/trai25/furtee.github.com 我是新人,刚接触 git 不久,也许是一些低级错误,还请 tommy351 兄指导,感谢!

neoesque commented 11 years ago

試著在 _config.yml 填入 deploy: type: github repository: git@github.com:trai25/furtee.github.com.git branch: master

看看

trai25 commented 11 years ago

还是不行,_config.yml 好像不接受这样的设置呢,报错如下:

You should configure deployment settings in _config.yml first!

Type:
  github, heroku, rsync

More info: http://zespia.tw/hexo/docs/deploy.html
tommy351 commented 11 years ago
deploy:
  type: github
  repository: git@github.com:trai25/furtee.github.com.git
  branch: master

deploy設定要加縮排,否則無法辨認

trai25 commented 11 years ago

@tommy351 还是不行,缩排以后 hexo generatehexo deploy 的结果如下:

hexo generate:

Loading.
Generating.
Site generated in 0.343s.

hexo deploy:

Clearing.
Copying files.
# On branch master
nothing to commit, working directory clean
tommy351 commented 11 years ago

因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次

rm -rf .deploy
hexo setup_deploy
hexo deploy
trai25 commented 11 years ago

hexo deploy 结果如下:

Clearing.
Copying files.
[master a19020d] Site updated: Fri Jan 04 2013 00:56:20 GMT+0800 (CST)
 20 files changed, 2045 insertions(+), 1 deletion(-)
 create mode 100644 2013/01/03/hello-world/index.html
 create mode 100644 archives/2013/01/index.html
 create mode 100644 archives/2013/index.html
 create mode 100644 archives/index.html
 create mode 100644 css/font/fontawesome-webfont.eot
 create mode 100644 css/font/fontawesome-webfont.svg
 create mode 100644 css/font/fontawesome-webfont.ttf
 create mode 100644 css/font/fontawesome-webfont.woff
 create mode 100644 css/style.css
 create mode 100644 fancybox/blank.gif
 create mode 100644 fancybox/fancybox_loading.gif
 create mode 100644 fancybox/fancybox_overlay.png
 create mode 100644 fancybox/fancybox_sprite.png
 create mode 100644 fancybox/jquery.fancybox.css
 create mode 100644 fancybox/jquery.fancybox.pack.js
 rewrite index.html (100%)
 create mode 100644 js/gallery.js
 create mode 100644 js/jquery.imagesloaded.min.js
 create mode 100644 js/moment.min.js
 create mode 100644 js/twitter.js

To git@github.com:trai25/furtee.github.com.git

 + 8aff73e...a19020d master -> master (forced update)

Deploy complete.

master 分支的内容有所变化 https://github.com/trai25/furtee.github.com 但 GitHub Page http://furtee.github.com 依然是404……求解

有没有可能是我在此之前漏掉了某个环节的操作?

tommy351 commented 11 years ago

username.github.com的username必須與使用者名稱相同,也就是說只有在repository為trai25.github.com時才有效,其他repository皆為username.github.com/repository

trai25 commented 11 years ago

哦,原来如此,果然是低级错误……外行真麻烦,要认真学习了。 最后一个问题:

我用户名的 trai25.github.com 现在是一个 Octopress. 如果我把 hexo 的 repository 设置为 trai25.github.com/hexo 是否两个blog都能保留下来呢?

万分感谢!

tommy351 commented 11 years ago

只要把repository的名稱設為hexo,訪問trai25.github.com/hexo應該就可以了

trai25 commented 11 years ago

弄了半天还是不行,应该是我有一些基础概念不清楚造成的,看来我得再学习学习先。

感谢 @tommy351 不厌其烦~!:-)

ForestCho commented 10 years ago

因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次 rm -rf .deploy hexo deploy @tommy351 提出的这个方法是可以解决的,刚试过

ghostcode commented 10 years ago

@tommy351 删除 .deploy文件可以实现提交

wulala commented 10 years ago

@tommy351 删除 .deploy文件可以实现提交.thx.

steptobe commented 9 years ago

qq 20141125180828 按照你说的删除了.deploy.可是还是不行。怎么回事?

steptobe commented 9 years ago

额,发完就看到问题了,弄好了,谢谢