0

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.

enter image description here

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.

imagineerThat
  • 5,293
  • 7
  • 42
  • 78

1 Answers1

1

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • You are right. 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. – imagineerThat Sep 09 '14 at 19:22
  • @imagineerThis indeed. Uou can remove the **[gitlink entry](http://stackoverflow.com/a/16581096/6309)**: `git rm --cached .vim` (no trailing slash), and add everything in your main repo (in order to make is part of the new repo). – VonC Sep 09 '14 at 19:24