Reputation: 2678
I have used git sub module as follows:
git submodule add git:<repository>.git
It works fine and I can see directory for the project inside my current directory.
Then I did:
git config --global status.submoduleSummary true
git commit -am "push"
git push origin master
On git hub it shows something like this.
However when I try to access these sub module files on server it shows empty directory. How to solve this ?
Upvotes: 1
Views: 554
Reputation: 415
You add the repository as submodule, now you have to initialize it.
Use git submodule update --init --recursive
to initialize and update the submodules recorded in the index.
Upvotes: 3