简体   繁体   中英

github/git: github not showing files in subdirectory

Created a new github repo, and added everything in a directory, and added to the repo. I noticed that the subdirectory is visible on github but grayed out - I can't click it. Doing a git ls-files , I see all the files added. I don't believe this directory's contents were ever sent to github because it's a large directory and the git push took almost no time at all.

Why can't I see this subdirectory on github?

Below shows the list from github.com. ".vim" subdirectory is grayed out.

在此处输入图片说明

EDIT:

I created a repo from one of the subdirectories a long time ago and forgot about it. The .git file in that subdirectory prevented me for adding it into the new repo. Resolution would be to link it as a submodule, or choose that directory to belong to either the new repo or old.

Going to keep this open as I came about this issue quite differently than the other linked SO question.

It could be submodule , as in this question .

When you clone that repo, you need to do a:

git submodule update --init

That will allow you to see the content of that folder.

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