Drupal-7: Install a module using Git

To use Git to install a YAD7 / Drupal 7 module from its source git repository, you must first:

  1. have Git installed on your development machine
  2. know the URL for the Git repository for the module

With all of this known, you can install a Drupal 7 module by going to any subdirectory of your Drupal sites/all/modules directory and type:

git clone

For example, to install the examples module, you would type:

git clone --branch 7.x-1.x https://git.drupalcode.org/project/examples.git

10 / 2019