简体   繁体   English

git repo不更新github.io内容

[英]Git repo not updating github.io content

Git newbie here. Git新手在这里。 Have searched Stackoverflow for this but nothing matches. 在Stackoverflow上搜索了此内容,但没有匹配项。

I have been committing/pushing my files for the last 8 weeks. 在过去的8周中,我一直在提交/推送文件。 However this week it seems to have gone wrong. 但是,这周似乎出错了。

Have also tried backing up & the deleting various folders and re-cloning. 还尝试了备份和删除各种文件夹并重新克隆。 The push is successful but still the github.io site doesn't update. 推送成功,但是github.io网站仍然没有更新。

What am I doing wrong? 我究竟做错了什么?

The folders you are trying to update in github.com/alice-tlr/alice-tlr.github.io are nested git repo recorded as gitlink , a special entry in the index of the repo . 您要在github.com/alice-tlr/alice-tlr.github.io中尝试更新的文件夹是嵌套的git repo,记录为gitlink ,这是repo索引中的特殊条目

A gitlink is just a SHA1 of another repo, as your commit bcc3d31 illustrate: gitlink只是另一个存储库的SHA1,如您的提交bcc3d31所示:

gitlink更新

Those are the gray folder you see in your GitHub repo. 这些是您在GitHub存储库中看到的灰色文件夹。

带有嵌套仓库的github

They won't ever include files directly. 它们永远不会直接包含文件。

You can transform them as full-fledged submodules . 您可以将它们转换为完整的子模块
They will still be gitlinks, meaning still a gray folder, but this time, GitHub page can fetch their content and display it (provided those submodules reference public repositories) 它们仍然是gitlinks,意味着仍然是一个灰色文件夹,但是这次GitHub页面可以获取其内容并显示它 (前提是那些子模块引用了公共存储库)

An actual submodule is: 实际的子模块是:

  • a gitlink (a SHA1) gitlink(SHA1)
  • an url (that is the part which is missing currently) 网址(这是当前缺少的部分)

Note that you can also remove the nested git repo and add directly its content if you want . 请注意,如果需要,您还可以删除嵌套的git repo并直接添加其内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM