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

Symfony .gitignore Vorlage

Standard Symfony 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
Symfony
Ausgewählte Vorlagen (1)
.gitignore
29 Regeln
### Symfony ###
# Cache and logs (Symfony2)
/app/cache/*
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep
# Email spool folder
/app/spool/*
# Cache, session files and logs (Symfony3)
/var/cache/*
/var/logs/*
/var/sessions/*
!var/cache/.gitkeep
!var/logs/.gitkeep
!var/sessions/.gitkeep
# Logs (Symfony4)
/var/log/*
!var/log/.gitkeep
# Parameters
/app/config/parameters.yml
/app/config/parameters.ini
# Managed by Composer
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/
# Assets and user uploads
/web/bundles/
/web/uploads/
# PHPUnit
/app/phpunit.xml
/phpunit.xml
# Build data
/build/
# Composer PHAR
/composer.phar
# Backup entities generated with doctrine:generate:entities command
**/Entity/*~
# Embedded web-server pid file
/.web-server-pid
54 Zeilen•UTF-8
Deterministische Pipeline

Quellcode: Symfony .gitignore

Crawlbare offizielle Upstream-Vorlage
symfony.gitignore•53 lines•UTF-8
# Cache and logs (Symfony2)
/app/cache/*
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep
# Email spool folder
/app/spool/*
# Cache, session files and logs (Symfony3)
/var/cache/*
/var/logs/*
/var/sessions/*
!var/cache/.gitkeep
!var/logs/.gitkeep
!var/sessions/.gitkeep
# Logs (Symfony4)
/var/log/*
!var/log/.gitkeep
# Parameters
/app/config/parameters.yml
/app/config/parameters.ini
# Managed by Composer
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/
# Assets and user uploads
/web/bundles/
/web/uploads/
# PHPUnit
/app/phpunit.xml
/phpunit.xml
# Build data
/build/
# Composer PHAR
/composer.phar
# Backup entities generated with doctrine:generate:entities command
**/Entity/*~
# Embedded web-server pid file
/.web-server-pid

Wichtige Ausschlussmuster im Überblick

Abhängigkeiten & Pakete

Schließt installierte Paketordner und Bibliotheken von Drittanbietern aus, die über Paketmanager wiederhergestellt werden.

/vendor/

Build-Artefakte & Kompilate

Ignoriert kompilierte Binärdateien, Zwischendateien und Build-Ausgabeordner aus dem Kompiliervorgang.

/bin/*!bin/console!bin/symfony_requirements/build/

Caches & temporäre Dateien

Ignoriert Compiler-Caches, Test-Coverage-Daten und temporäre Arbeitsdateien, um das Repository schlank zu halten.

/app/cache/*!app/cache/.gitkeep/var/cache/*!var/cache/.gitkeep/app/bootstrap.php.cache/var/bootstrap.php.cache

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.