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



The beauty of SEO is the

The beauty of SEO is the reality once your website and even weblog advantages ground, the benefit the idea purchased from the seo surgery is pretty much long lasting. Employing advertising, you need to protect paying for your website website visitors; with online promotion, you get more and more site visitors plus it gets increasingly less expensive because website's status improves

Add new comment | Penyaskito Blog

My devewloper is trying to persuade me to move to
.net from PHP. I have alwaus disliked the idea
because of the expenses. But he's tryiong none tthe less.

I've been using WordPress on numerous websites for abouut
a year and am concerned about switfching to another platform.
I have heard very good things about

Is there a way I can import all my wordpress posts into it?
Any kind of help would be greatly appreciated!

Look into my webpage verrt shock Jump training -

Add new comment | Penyaskito Blog

It's going to be ending of mine day, however before ending I amm reading this
great paragraph to improve my know-how.

my homepage :: tedeth whitening trays top and bottokm - Http://

Just 20 decades Consultant

Just 20 decades Consultant Views facets out that people ought to be preserving 33% of our profits during years that are operating. For many this quantity will soon not be significantly secondary considering there is an extended pension becoming less unlikely.

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?


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.