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



t a great blog .I will be

I was curious if you ever

I was curious if you ever considered changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better.You’ve got an awful lot of text for only having one or 2 pictures. Maybe you could space it out better?
learn to inject Botox online

The capture is, regardless of

The capture is, regardless of what position you obtain on your web site or content, if no one is aware of it, or if everyone prevents studying 50 percent way through, everybody drops. So, you try to power nourish your redundancy to be able to obtain position without dropping people entirely in the procedure. Think "Family Feud" where the aggressive near relatives is known as Dawson.

A latest analysis revealed

A latest analysis revealed that only 10% of web developer is appropriate SEO into their sites, and only 24% of web developers think that SEO should be applied. That usually outcomes in you with 76% of web developers that either have no idea what SEO is, think it is too simple and unrelated and think that this is a ineffective.

But let me just situation

But let me just situation this before we history the causes why you would need professional SEO talking to alternatives, if you want something done right from the begin, you need an personal that knows the organization and how aspects are done. Why, because economical dedication techniques are there to enhance your advantage.

I have lengthy suggested that

I have lengthy suggested that if we at least realized the facts and the transaction of the un-named first 21 grabs, we would be much better able to actually comprehend catch-22. Anyone who has study Heller's opus and who knows anything about SEO, however, will instantly know that Heller's contrarian idol, Yosarian, would have to really like SEO.


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.