I have a project on my git repo.
I add a submodule (a project in github) to this project. And when I do git status
I see the complete added project with all of its content as a file, and not as diferent files. Why happens this?
I have a project on my git repo.
I add a submodule (a project in github) to this project. And when I do git status
I see the complete added project with all of its content as a file, and not as diferent files. Why happens this?
What you see is the gitlink (a special entry in the index) representing the SHA1 recorded for your submodule.
When you add a submodule, you add a "file" (gitlink), that you need to commit and push.