Search results

Comprehensive Code Flow Management

Philosophy

We are following the gitflow method where Master is stable and production ready. We did not start out this way but are migrating quickly to adopting this method with some alterations.

Maintenance flow [1].

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.

Conceptually

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:

Updating Your Codebase

git checkout origin master
git remote add [luggage_branch] [luggage_repo]
git pull [luggage_branch] master
git checkout [luggage_branch]/master sites/all/modules/luggage/* .gitmodules sites/all/themes/*
git add sites/all/modules/luggage
git add .gitmodules
git add sites/all/themes