按照 Jekyll-Bootstrap 的说明进行操作时出现错误:未找到存储库消息

发布于 2025-01-02 11:11:52 字数 708 浏览 6 评论 0 原文

使用 Jekyll-Bootstrap 时,Github 页面不适合我。

我按照这里的说明操作:

http://jekyllbootstrap.com/

说明说:

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

我使用了个性化安装代码(意味着我的 github 名称而不是“用户名”)

当我尝试执行最后一个“$ git Push origin master”时,我收到此错误 我

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

如何得到这个去工作?

谢谢

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 [email protected]: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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

油焖大侠 2025-01-09 11:11:52

我遇到了同样的问题。我注意到该指令给出的命令包含 USERNAME.github.com,而我实际的 Jekyll-Bootstrap 博客位于 USERNAME.github.io

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.

画离情绘悲伤 2025-01-09 11:11:52

您必须在 GitHub 上创建一个名为 USERNAME.github.com 的 git 存储库。您是 GitHub 新手吗?只需确保您登录,然后转到 http://github.com 上的仪表板
在该页面的某个位置,您会看到一个“新存储库”按钮。使用它创建一个名为 USERNAME.github.com 的存储库。完成后,再次运行 Jekyll Bootstrap 命令,它应该可以工作。

让我知道进展如何。

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.

很酷不放纵 2025-01-09 11:11:52

当用户对组织没有权限时,我遇到了同样的问题。如果您遇到此问题,请检查其状态。

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

说谎友 2025-01-09 11:11:52

我面对这个问题,拔出头发并找出解决方案。发生这种情况是因为您的 git 远程存储库仍然指向 github.io。而是使用 github.com

 git remote rm origin
 git remote add origin [email protected]:myorganization/myrepo.github.com.git

然后运行 ​​setup

 rake setup_github_pages

它会提示输入 repo url,输入带有 .com 扩展名的 url [电子邮件受保护]:myorganization/myrepo.github.com.git

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 [email protected]:myorganization/myrepo.github.com.git

Then run setup

 rake setup_github_pages

It prompts for repo url, enter your url which has .com extension [email protected]:myorganization/myrepo.github.com.git

流心雨 2025-01-09 11:11:52

我遇到了同样的问题。当我按照以下步骤克隆 jekyll 存储库时,我创建了 username.github.io 存储库:

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

我还使用 CNAME 文件重定向到我的自定义域。有时推送成功并可以提交时效果很好。但一段时间后它会给出同样的错误。

<块引用>

权限被拒绝(公钥)。
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并且存储库存在。

此时,在您的根目录中创建了 _site 文件夹,地址为 username.github.io
我还不知道解决方案,但删除远程存储库并再次推入空存储库。

谢谢。

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 [email protected]: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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文