Search results

Adding a Submodule with Git

Sometimes you have Drupal in a git repository and you want to use a single submodule from Luggage. For example, you might have a site on which you want only the People feature.

Here is how to add a submodule to your git repository.


In English, you are telling your git repository that contains the code for your website where the git submodule is, so that when you type

git submodule update --init

it will automatically pull in the submodule.

Moving On

First, you add the submodule by hand: