Git workflow with submodules for Drupal deployment

Maybe you've seen the great article on Drupal Deployment with Git Submodules, by Randy Fay. I manage this site using that strategy, but some times I forget how every operation is done. So here I'm collecting them for my own reference.

For fetching all the new info from submodules: 

git submodule foreach git fetch origin 

Now we go into each module folder and use:

git pull 

If we wanted to switch to a different branch, we should use:

git branch -a # we see the available branches 
git checkout 7.x-2.x # the different branch 

For commiting it, we go back to the contrib folder and do:

git add contrib-module-name 

At the end, we use:

drush updb --debug -y 

Maybe we see some warnings because of unresolved dependencies. In that case, add the new submodule:

git submodule add --branch 7.x-1.x git:// sites/all/modules/contrib/entity 

Finally, updating core:

git merge drupal/7.x drush updb --debug -y 

Ok, so we've done this on our DEVELOPMENT site. If everything is OK, now it's time to update the server, after doing a backup:

git pull
git submodule update --init 
drush updb --debug -y



I was fascinated if you ever

I was fascinated if you ever considered, changing style of your site? Its very well written; I really like what you have got to say. But maybe you could a little more in the way of fabric so people could weblink to it better.You’ve got a lot of released published text for only having one or 2 pictures. Maybe you could place it out better?

I was interested if you ever

I was interested if you ever regarded modifying design of your site? Its very well written; I really like what you have to say. But maybe you could a little more in the way of material so individuals could interact with it better You’ve got a lot of published text for only having one or 2 images. Maybe you could area it out better?

The Organist module is

The Organist module is considered to agree users to effortlessly stage satisfied from one Drupal site to additional. Deploy repeatedly manages dependence between objects. It is calculated to have an amusing API which can be effortlessly extended to be used in a diversity of content staging circumstances. Since I am assignment writing services - provider and Quality assignment help writer. Drupal 8 usages it to build its individual dependencies and has just opened a Creator repository of its own. Retain in mind this is immobile in alpha.

I am commenting to let you

I am commenting to let you know what a terrific experience my daughter enjoyed reading through your web page. She noticed a wide variety of pieces, with the inclusion of what it is like to have an awesome helping style to have the rest without hassle grasp some grueling matters.
handheld vacuum cleaner reviews

A number of us know all

A number of us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage contribution from other ones on this subject while our own child is truly discovering a great deal. Have fun with the remaining portion of the year.

My developer is trying to

My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on several websites for about a year and am anxious about switching to another platform. I have heard great things about Is there a way I can transfer all my wordpress posts into it? Any help would be really appreciated!

xarelto lawsuit commercial


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
By submitting this form, you accept the Mollom privacy policy.