简体   繁体   中英

Git repo not updating github.io content

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.

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:

gitlink更新

Those are the gray folder you see in your GitHub repo.

带有嵌套仓库的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)

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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