Git/Github

Good list of resources from a Drupal point of view. http://drupal.org/node/783086.  It can be used at many levels from a clone of all of Drupal down to a single module. I (Walt) has setup an account on Github that is free as long as we treat our stuff as open source and share with everyone. The setup is a work in progress. To use it, you need to download and install Git on your machine. The version to install is Git-1.7.0.2-preview20100309.

We might want to keep our theme stuff out of open source in which case it costs about $7/month.

Optionally we could install Git on our server and use it with no cost (other than maintenance which is likely to be overwhelming and not worth it for our light usage). 

Example of installing a module using various means, including Git.


--------------------------------------------------------------------------------

 TO INSTALL VIA DRUPAL

--------------------------------------------------------------------------------

 We highly recommend using drush if possible.  This will drastically speed up 

 downloading and updating your Drupal packages.

   See http://drupal.org/project/drush

 WITH DRUSH

   From your root Drupal site directory, run:

   COMMAND_PROMPT$ drush dl uc_bulk_discount

   The to update, all you have to do is:

   COMMAND_PROMPT$ drush update

   This will update any contributed projects that have new releases.  This is

   much better than downloading the packages yourself.  Oh, drush is extensible

   as well, so you can write your own drush modules.

 WITHOUT DRUSH

   Go download the recommended package from the drupal project page.  Untar in

   your sites/all/modules folder or wherever you are putting your modules.   

--------------------------------------------------------------------------------

 TO INSTALL VIA GIT

--------------------------------------------------------------------------------

 START BY:

 [1]$ cd $TOP_LEVEL_SITE_DIRECTORY

 -------------------------------------------

|  To clone this module into a Drupal site  |

 -------------------------------------------

  THEN DO THIS:

   # Only if your Drupal project << IS NOT >> a GIT REPOSITORY!!!

 [2]$ git clone git://github.com/collectivecolors/drupal-modules-uc_bulk_discount.git 

                sites/all/modules/uc_bulk_discount

 --------------------------------------------

|  To import this module as a Git submodule  |

 --------------------------------------------

  OR DO THIS:

   # Only if your Drupal project << IS >> a GIT REPOSITORY!!!        

 [2]$ git submodule add git://github.com/collectivecolors/drupal-modules-uc_bulk_discount.git

                        sites/all/modules/uc_bulk_discount                  

 [2.1]$ git commit -m "Adding uc_bulk_discount module to project."

---------------------------------------------

 THEN CONTINUE WITH:

 [3]$ cd sites/all/modules/uc_bulk_discount

 [4]$ git checkout -b $MY_BRANCH $MODULE_TAG   

    # For example, $MY_BRANCH  = dev

    # For example, $MODULE_TAG = DRUPAL-6--1-0-BETA1

 [5]$ git status # Your ready for site configuration ( See below )

 


 

Edit this page - or comment below. 

Groups: