Kishan Mehta
Kishan Mehta

Reputation: 2678

Access submodule files on server

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. enter image description here

However when I try to access these sub module files on server it shows empty directory. How to solve this ?

Upvotes: 1

Views: 554

Answers (1)

HenryGiraldo
HenryGiraldo

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

Related Questions