How to create a git repository with subfolders that contain files?

when I click on my local repo (consisting of several subfolders containing my files) on github, the folder names are listed in the github registry, but they are not designated as folders / do not have files in them that I can access ... How can I make it work?

+4
source share
1 answer

Make sure your subfolder (which you click on) includes .git/ in them.

This will make them nested with a git repo (or even a submodule if you have a .gitmodule in your main repo)

Thus, their gitlink (a special entry in the index ) will appear on GitHub as an empty gray folder.

+5
source

All Articles