Reputation: 12471
I created a repository in Github and was trying to upload some Python code there. One of the sub-folder is uploaded empty which I don't reason out. I created new repository with different name and still facing the same issue. Later, I remove the origin
using git remote rm origin
and dont see any effect for that. Here is the picture for the upload,
The folder name with some code is ML Examples
and it uploaded as empty. I was tried to change the name to ML
earlier and deleted later on. However, it still shows in the upload.
What's the issue here and how to solve it ?
Upvotes: 0
Views: 782
Reputation: 1329712
What you see (gray folder) is a gitlink, a special entry in the index of your main GitHub repo which records the nested repo root SHA1.
If you want to reference its content as well, you should add those nested repos as submodules.
Or you should avoid for those subdirectories to have a .git/
folder in them, as that would make them nested git repo.
Upvotes: 2
Reputation: 1
AFAIU git
don't really care about directories, only about files inside them.
That is, you need to git add somedir/somefile
(but I am a newbie on git and could be wrong)
Upvotes: 0