Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
trai25 opened this issue Jan 2, 2013 · 15 comments
Closed
Labels
question Needs help in usage

Comments

@trai25
Copy link

trai25 commented Jan 2, 2013

我按照 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
Copy link

neoesque commented Jan 3, 2013

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

看看

@trai25
Copy link
Author

trai25 commented Jan 3, 2013

还是不行,_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
Copy link
Member

tommy351 commented Jan 3, 2013

deploy:
  type: github
  repository: git@github.com:trai25/furtee.github.com.git
  branch: master

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

@trai25
Copy link
Author

trai25 commented Jan 3, 2013

@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
Copy link
Member

tommy351 commented Jan 3, 2013

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

rm -rf .deploy
hexo setup_deploy
hexo deploy

@trai25
Copy link
Author

trai25 commented Jan 3, 2013

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
Copy link
Member

tommy351 commented Jan 3, 2013

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

@trai25
Copy link
Author

trai25 commented Jan 3, 2013

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

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

万分感谢!

@tommy351
Copy link
Member

tommy351 commented Jan 3, 2013

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

@trai25
Copy link
Author

trai25 commented Jan 3, 2013

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

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

@tommy351 tommy351 closed this as completed Jan 6, 2013
@ForestCho
Copy link

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

@ghostcode
Copy link

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

@wulala
Copy link

wulala commented Jul 3, 2014

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

@steptobe
Copy link

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

@steptobe
Copy link

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

zhipengyan pushed a commit to zhipengyan/hexo that referenced this issue Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Needs help in usage
Projects
None yet
Development

No branches or pull requests

7 participants