Skip to content
framework32 aktive RegelnGeprüft am 2026-09-30

Drupal7 (PHP) .gitignore Vorlage

Standard Drupal7 (PHP) gitignore template from upstream github/gitignore collection. Deterministisch mit Mustern des offiziellen GitHub-Repositorys zusammengeführt, um dein Projekt sauber von Abhängigkeitsordnern, Build-Artefakten und lokalen Umgebungsvariablen zu halten.

Interaktiver Stack-Generator

Im vollständigen Generator öffnen
Search for templates
Schnell hinzufügen:
Ausgewählt1
Drupal7 (PHP)
Ausgewählte Vorlagen (1)
.gitignore
32 Regeln
### 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*.php
sites/example.sites.php
# Ignore paths that contain generated content.
files/
sites/*/files
sites/*/private
sites/*/translations
# Ignore default text files
robots.txt
/CHANGELOG.txt
/COPYRIGHT.txt
/INSTALL*.txt
/LICENSE.txt
/MAINTAINERS.txt
/UPGRADE.txt
/README.txt
sites/README.txt
sites/all/libraries/README.txt
sites/all/modules/README.txt
sites/all/themes/README.txt
# Ignore everything but the "sites" folder ( for non core developer )
.htaccess
web.config
authorize.php
cron.php
index.php
install.php
update.php
xmlrpc.php
/includes
/misc
/modules
/profiles
/scripts
/themes
45 Zeilen•UTF-8
Deterministische Pipeline

Quellcode: Drupal7 (PHP) .gitignore

Crawlbare offizielle Upstream-Vorlage
php-drupal7.gitignore•44 lines•UTF-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*.php
sites/example.sites.php
# Ignore paths that contain generated content.
files/
sites/*/files
sites/*/private
sites/*/translations
# Ignore default text files
robots.txt
/CHANGELOG.txt
/COPYRIGHT.txt
/INSTALL*.txt
/LICENSE.txt
/MAINTAINERS.txt
/UPGRADE.txt
/README.txt
sites/README.txt
sites/all/libraries/README.txt
sites/all/modules/README.txt
sites/all/themes/README.txt
# Ignore everything but the "sites" folder ( for non core developer )
.htaccess
web.config
authorize.php
cron.php
index.php
install.php
update.php
xmlrpc.php
/includes
/misc
/modules
/profiles
/scripts
/themes

Wichtige Ausschlussmuster im Überblick

Umgebungsvariablen & Zugangsdaten

Verhindert das versehentliche Hochladen sensibler Zugangsdaten, API-Schlüssel und lokaler .env-Dateien.

authorize.php

Herkunft & Lizenzprüfung

Lizenz:: CC0-1.0

Platziere diese Datei unter dem Namen .gitignore im Stammverzeichnis deines Projekts. Die Änderungen greifen sofort für alle neuen und nicht getrackten Dateien.