Git repo不更新github.io内容 [英] Git repo not updating github.io content
问题描述
过去8周我一直在提交/推送我的文件。但本周它似乎出了问题。
- 我的git回购(
这些是您在GitHub仓库中看到的灰色文件夹。
他们不会直接包含文件。
您可以 将它们转换为完整的子模块 。
它们仍然是gitlinks,这仍然是一个灰色文件夹,但是这一次, GitHub页面可以获取他们的内容并显示它(假设这些子模块引用了 public em> repositories)
一个实际的子模块是:
$ ul
- 一个gitlink SHA1)
- 网址(即目前缺少的部分)
请注意,您也可以删除嵌套的git仓库并直接添加其内容。
Git newbie here. Have searched Stackoverflow for this but nothing matches.
I have been committing/pushing my files for the last 8 weeks. However this week it seems to have gone wrong.
- My git repo (https://github.com/alice-tlr/alice-tlr.github.io) is showing the updated files, that match my local dev files
- However they are not reflected in the live https://alice-tlr.github.io site
- Git reports everything is up to date when i try push
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.
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.
A gitlink is just a SHA1 of another repo, as your commit bcc3d31 illustrate:
Those are the gray folder you see in your GitHub repo.
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)
An actual submodule is:
- a gitlink (a 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不更新github.io内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!