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



Toko mebel online http:/

Toko Mebel Online http://www

Toko Mebel Online
Toko Mebel Jepara Online
Toko Mebel Kursi
Toko Furniture Karya
Toko Furniture Priboemi
karya funriture =
karya priboemi =
jepara on =
mebel kursi =
jepara meubel =

you are oke

PRODUCT NOTICE Important information about your product · FIRMWARE UPDATE Download latest firmware · OLD DRIVER ARCHIVE Download driver of old if you need the driver printer, you can check at
brother at your side. Brother Solution Center ... Any trade names and product names of companies appearing on Brother products, related documents and any ... if you need the driver printer, you can check at
Samsung Galaxy S5 review | The S5 delivers fantastic specs and an amazing screen and is only let down by an uninspiring design. Reviews ... if you need the gadgets info, you can check at
Land Rover cars: research Land Rover cars, read Land Rover reviews, find Land Rover car listings and get Land Rover pricing & dealer quotes. if you need the last info about car automotive, you can check at
Find technology questions and answers in this community of information technology (IT) experts and professionals. if you need the last info update about technology, you can check at
Welcome to the Official HP Drivers and Downloads page featuring HP drivers for printers, scanners, laptops and more. Start with our Driver Product Search. if you need more info about geophysics, you can check at

Hello Bro

Saya sendiripun sampai saat ini , 17 tahun hidup di dunia, pernah mengalami yang namanya jatuh cinta lalu terluka *halah* , belum bisa mendeskipsikan sendiri apa itu yang namanya cinta. I mean, setiap orang, dari pengalaman yang telah mereka dapatkan , mereka akan bisa menyimpulkan sendiri versi ‘arti cinta’ menurut mereka masing-masing, nah sementara saya belum bisa melakukannya. Entah karna kurang pengalaman atau perasaan saya ini yang emang bebal, entahlah.

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.