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
  • 4,783
  • 7
  • 35
  • 67
  • possible duplicate of [What does a grey icon in remote GitHub mean](http://stackoverflow.com/questions/19584255/what-does-a-grey-icon-in-remote-github-mean) – Chris Sep 09 '14 at 20:28
  • Keeping it open because mine comes up with different search keywords. Gray vs grey and subdirectories. – imagineerThat Sep 09 '14 at 20:33

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,129,465
  • 480
  • 4,036
  • 4,755
  • 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