Using Git with Drupal

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + guest334276 guest334276 10 months ago
    Please create a screencast that do all of these! Thank you!
Post a comment
Embed Video
Edit your comment Cancel

3 Favorites & 1 Event

Using Git with Drupal - Presentation Transcript

  1. Using GIT with Drupal Drupal Camp Sydney - 18 Oct 2008
  2. Who am I A long time member of the Drupal community. About 7 yrs Full time Drupal consultant Lead maintainer of the e-Commerce system
  3. What is GIT A Source Code Management system created by Linus Torvalds Decentralized SCM Amazing branching and merging capibilities Extremely Fast
  4. Advantages of Git All commits are guaranteed to be written as is to the repository Has a chain of evidence to seeing who wrote the patch, who tested the patch, and who committed the patch. Branches are quick and inexpensive Merges are extremely powerful
  5. Using Git with Drupal
  6. Interfacing with CVS Built in ability to access other SCM systems like CVS, SVN, and others. Can usually import and export to other SCM
  7. Getting code of out contrib. git cvsimport -d:pserver:anonymous@cvs.drupal.org:/cvs/ drupal-contrib -C modulename -a contributions/modules/ name_of_contrib_module
  8. Committing changes Make changes git add filename git commit
  9. Exporting changes back GIT_DIR=path_to_.git git cvsexportcommit -cv hash
  10. Creating a branch git branch branch_name head_of branch git checkout branch_name
  11. Merging git merge branch_name
  12. Using GIT for clients
  13. Base System Has all modules that I use with all clients. views, cck, panels etc Update any changes to base system in 1 place.
  14. Creating a site git clone base new_system git branch website
  15. Installing new modules Download tarball from drupal.org, unpack and commit to the repository
  16. Uploading to remote site. Set up remote repository git clone --bare site site.git copy site.git to webserver add remote section to .git/config git push website Add to hook to automatically pull the changing into the site
  17. Updating Site from Base git pull
  18. Questions

+ Ryan CrossRyan Cross, 2 years ago

custom

1058 views, 3 favs, 0 embeds more stats

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 1058
    • 1058 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 3
  • Downloads 21
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories

Groups / Events