framework32 active rulesVerified 2026-09-30
Drupal7 (PHP) .gitignore Template
Standard Drupal7 (PHP) gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full Generator/
Search for templates
Quick add:
Selected1
Drupal7 (PHP)
Selected Templates (1)
Drupal7 (PHP)
framework
Standard Drupal7 (PHP) gitignore template from upstream github/gitignore collection
#php-drupal7#drupal7
.gitignore
### Drupal7 (PHP) #### gitignore template for Drupal 7 projects## It is recommended that you use `Drupal.gitignore` as this is the latest version # Ignore configuration files that may contain sensitive information.sites/*/*settings*.phpsites/example.sites.php # Ignore paths that contain generated content.files/sites/*/filessites/*/privatesites/*/translations # Ignore default text filesrobots.txt/CHANGELOG.txt/COPYRIGHT.txt/INSTALL*.txt/LICENSE.txt/MAINTAINERS.txt/UPGRADE.txt/README.txtsites/README.txtsites/all/libraries/README.txtsites/all/modules/README.txtsites/all/themes/README.txt # Ignore everything but the "sites" folder ( for non core developer ).htaccessweb.configauthorize.phpcron.phpindex.phpinstall.phpupdate.phpxmlrpc.php/includes/misc/modules/profiles/scripts/themes 32 rules1 template45 linesUTF-8LF
Deterministic
Raw Drupal7 (PHP) .gitignore
Crawlable upstream source templatephp-drupal7.gitignore44 linesUTF-8
# gitignore template for Drupal 7 projects## It is recommended that you use `Drupal.gitignore` as this is the latest version # Ignore configuration files that may contain sensitive information.sites/*/*settings*.phpsites/example.sites.php # Ignore paths that contain generated content.files/sites/*/filessites/*/privatesites/*/translations # Ignore default text filesrobots.txt/CHANGELOG.txt/COPYRIGHT.txt/INSTALL*.txt/LICENSE.txt/MAINTAINERS.txt/UPGRADE.txt/README.txtsites/README.txtsites/all/libraries/README.txtsites/all/modules/README.txtsites/all/themes/README.txt # Ignore everything but the "sites" folder ( for non core developer ).htaccessweb.configauthorize.phpcron.phpindex.phpinstall.phpupdate.phpxmlrpc.php/includes/misc/modules/profiles/scripts/themes Key Pattern Breakdown
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
authorize.php
Source & Verification
Source:: GitHub gitignore (main)
License:: CC0-1.0
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.