ERROR: Repository not found message given when following the instructions for Jekyll-Bootstrap

做~自己de王妃 提交于 2019-12-12 03:23:36

问题


Github pages not working for me when using Jekyll-Bootstrap.

I followed the instructions here:

http://jekyllbootstrap.com/

The instructions say:

$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
$ cd USERNAME.github.com
$ git remote set-url origin git@github.com:USERNAME/USERNAME.github.com.git
$ git push origin master

I used the personalized install code (means my github name rather than "USERNAME")

I get this error when I try to do the last "$ git push origin master"

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

How do I get this to work?

Thanks


回答1:


You have to have created a git repository on GitHub named USERNAME.github.com. Are you new to GitHub? Just make sure you log in and then go to your dashboard which is on http://github.com Somewhere on that page you'll see a button "New repository". Use that to create a repo named USERNAME.github.com . Once that's done, run the Jekyll Bootstrap commands again and it should work.

Let me know how it goes.




回答2:


I ran into the same problem. I noticed that the instruction give commands that include USERNAME.github.com while my actual Jekyll-Bootstrap blog is located at USERNAME.github.io.




回答3:


I had the same issue when the user had no permissions over the organization. Check its status if you have this problem.




回答4:


I face this issue and pull my hair out and figure out the solution. It occurs since your git remote repo still points to github.io. Instead use github.com

 git remote rm origin
 git remote add origin git@github.com:myorganization/myrepo.github.com.git

Then run setup

 rake setup_github_pages

It prompts for repo url, enter your url which has .com extension git@github.com:myorganization/myrepo.github.com.git




回答5:


I ran into same problem. I have created username.github.io repository when I cloned the jekyll repo as per the steps:

$ git clone https://github.com/plusjade/jekyll-bootstrap.git USERNAME.github.io
$ cd USERNAME.github.io
$ git remote set-url origin git@github.com:USERNAME/USERNAME.github.io.git
$ git push origin master

I also used CNAME file to redirect to my custom domain. It works fine for sometime pushes successfully and can commit. But after sometime it gives the same error.

Permission denied (publickey). fatal: Could not read from remote repository.

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

At this time _site folder is created on your root at username.github.io I couldn't know the solution yet but deleting the remote repo and pushing into empty repo again.

Thanks.



来源:https://stackoverflow.com/questions/9133578/error-repository-not-found-message-given-when-following-the-instructions-for-je

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!