Last Updated: February 25, 2016
·
208
· gapple

Globally ignore Drupal development modules

It's common to have development-only modules in Drupal that should not be committed to the repository, and clutter up every git status call. Depending on your project structure they could be placed in different folders, so the following rule pattern in a global ignore file should handle them:

**/sites/*/modules/**/devel
**/sites/*/modules/**/xhprof
**/sites/*/modules/**/stage_file_proxy

Example Paths

All of the following (Drupal 7) paths should be ignored:

sites/all/modules/devel
sites/all/modules/contrib/devel
sites/default/modules/contrib/devel
docroot/sites/all/modules/contrib/devel