.gitignore pour PrestaShop
135 règles d’exclusion pour PrestaShop, prêtes à copier dans votre dépôt.
Plateforme e-commerce
Le .gitignore complet pour PrestaShop
# Généré par LFGitignore - https://lfgitignore.com
# Créé le : 2026-11-03 18:16:20 UTC
# Technologies : Prestashop
### Prestashop ###
/.htaccess
# Fichier journal
*.log
/cache/*
!/cache/.htaccess
!/cache/cachefs/index.php
!/cache/deprecated.txt
!/cache/index.php
!/cache/purifier/index.php
!/cache/push/activity
!/cache/push/index.php
!/cache/push/trends
!/cache/sandbox/index.php
!/cache/smarty/cache/index.php
!/cache/smarty/compile/index.php
!/cache/smarty/index.php
!/cache/tcpdf/index.php
/download/*
!/download/.htaccess
!/download/index.php
/img/*
!/img/.htaccess
!/img/index.php
!/img/404.gif
!/img/bg_500.png
!/img/bg_loader.png
!/img/favicon.ico
!/img/loader.gif
!/img/loadingAnimation.gif
!/img/logo.jpg
!/img/logo.png
!/img/logo_invoice.jpg
!/img/logo_stores.png
!/img/macFFBgHack.png
!/img/prestashop-avatar.png
!/img/prestashop@2x.png
!/img/preston-login-wink@2x.png
!/img/preston-login@2x.png
!/img/questionmark.png
!/img/genders/index.php
!/img/admin/index.php
!/img/c/index.php
!/img/cms/index.php
!/img/co/index.php
!/img/jquery-ui
!/img/l/index.php
!/img/m/index.php
!/img/os/index.php
!/img/p/index.php
!/img/s/index.php
!/img/scenes
!/img/st/index.php
!/img/su/index.php
!/img/t/index.php
!/img/tmp/index.php
/upload/*
!/upload/.htaccess
/vendor/*
/docs/phpdoc-sf/
/composer.lock
*.hot-update.js
*.hot-update.json
/admin-dev/autoupgrade/*
!/admin-dev/autoupgrade/index.php
!/admin-dev/autoupgrade/backup/index.php
/admin-dev/backups/*
!/admin-dev/backups/.htaccess
/admin-dev/import/*
!/admin-dev/import/.htaccess
!/admin-dev/import/index.php
/admin-dev/export/*
!/admin-dev/export/.htaccess
!/admin-dev/export/index.php
/admin-dev/themes/default/css/bundle/default_rtl.css
/admin-dev/themes/default/css/bundle/shared_rtl.css
/admin-dev/themes/default/css/font_rtl.css
/admin-dev/themes/default/css/overrides_rtl.css
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css
/admin-dev/themes/default/public/theme_rtl.css
/admin-dev/themes/new-theme/css/module/drop_rtl.css
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css
themes/*/cache/*
config/settings.inc.php
config/settings.old.php
config/xml/*
config/themes/*
!config/xml/themes/default.xml
themes/*/config/settings_*.json
app/config/parameters.old.yml
app/config/config.php
modules/*
override/*
themes/*/
!themes/classic
!themes/_core
!themes/_libraries
bower_components/
# Dépendances Node.js
node_modules/
composer.phar
php-cs-fixer
.grunt/*
translations/*
mails/*
!mails/themes/
!mails/_partials/
themes/default-bootstrap/lang/*
themes/default-bootstrap/modules/*/translations/*.php
themes/default-bootstrap/mails/*
!themes/default-bootstrap/mails/en/
themes/default-bootstrap/modules/*/mails/*
!themes/default-bootstrap/modules/*/mails/en
*sitemap.xml
/robots.txt
/bin/
/app/Resources/geoip/GeoLite2-City.mmdb
/app/Resources/translations/*
!/app/Resources/translations/default
/app/config/parameters.yml
/app/config/parameters.php
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php
/vendor/
/web/bundles/
Ce que ces règles PrestaShop ignorent vraiment
Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.
Cache, fichiers temporaires et personnels
| Motif | Ce qu’il ignore |
|---|---|
/.htaccess |
Cache, fichiers temporaires et personnels |
*.log |
Fichier journal |
Cache
| Motif | Ce qu’il ignore |
|---|---|
/cache/* |
Cache |
!/cache/.htaccess |
Cache |
!/cache/cachefs/index.php |
Cache |
!/cache/deprecated.txt |
Cache |
!/cache/index.php |
Cache |
!/cache/purifier/index.php |
Cache |
!/cache/push/activity |
Cache |
!/cache/push/index.php |
Cache |
!/cache/push/trends |
Cache |
!/cache/sandbox/index.php |
Cache |
!/cache/smarty/cache/index.php |
Cache |
!/cache/smarty/compile/index.php |
Cache |
!/cache/smarty/index.php |
Cache |
!/cache/tcpdf/index.php |
Cache |
Téléchargement
| Motif | Ce qu’il ignore |
|---|---|
/download/* |
Téléchargement |
!/download/.htaccess |
Téléchargement |
!/download/index.php |
Téléchargement |
Images
| Motif | Ce qu’il ignore |
|---|---|
/img/* |
Images |
!/img/.htaccess |
Images |
!/img/index.php |
Images |
!/img/404.gif |
Images |
!/img/bg_500.png |
Images |
!/img/bg_loader.png |
Images |
!/img/favicon.ico |
Images |
!/img/loader.gif |
Images |
!/img/loadingAnimation.gif |
Images |
!/img/logo.jpg |
Images |
!/img/logo.png |
Images |
!/img/logo_invoice.jpg |
Images |
!/img/logo_stores.png |
Images |
!/img/macFFBgHack.png |
Images |
!/img/prestashop-avatar.png |
Images |
!/img/prestashop@2x.png |
Images |
!/img/preston-login-wink@2x.png |
Images |
!/img/preston-login@2x.png |
Images |
!/img/questionmark.png |
Images |
!/img/genders/index.php |
Images |
!/img/admin/index.php |
Images |
!/img/c/index.php |
Images |
!/img/cms/index.php |
Images |
!/img/co/index.php |
Images |
!/img/jquery-ui |
Images |
!/img/l/index.php |
Images |
!/img/m/index.php |
Images |
!/img/os/index.php |
Images |
!/img/p/index.php |
Images |
!/img/s/index.php |
Images |
!/img/scenes |
Images |
!/img/st/index.php |
Images |
!/img/su/index.php |
Images |
!/img/t/index.php |
Images |
!/img/tmp/index.php |
Images |
Téléversement
| Motif | Ce qu’il ignore |
|---|---|
/upload/* |
Téléversement |
!/upload/.htaccess |
Téléversement |
/vendor/* |
Téléversement |
/docs/phpdoc-sf/ |
Téléversement |
/composer.lock |
Téléversement |
*.hot-update.js |
Téléversement |
*.hot-update.json |
Téléversement |
/admin-dev/autoupgrade/* |
Téléversement |
!/admin-dev/autoupgrade/index.php |
Téléversement |
!/admin-dev/autoupgrade/backup/index.php |
Téléversement |
/admin-dev/backups/* |
Téléversement |
!/admin-dev/backups/.htaccess |
Téléversement |
/admin-dev/import/* |
Téléversement |
!/admin-dev/import/.htaccess |
Téléversement |
!/admin-dev/import/index.php |
Téléversement |
/admin-dev/export/* |
Téléversement |
!/admin-dev/export/.htaccess |
Téléversement |
!/admin-dev/export/index.php |
Téléversement |
Fichiers RTL téléchargés
| Motif | Ce qu’il ignore |
|---|---|
/admin-dev/themes/default/css/bundle/default_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/bundle/shared_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/font_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/overrides_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/default/public/theme_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/new-theme/css/module/drop_rtl.css |
Fichiers RTL téléchargés |
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css |
Fichiers RTL téléchargés |
themes/*/cache/* |
Fichiers RTL téléchargés |
Configuration
| Motif | Ce qu’il ignore |
|---|---|
config/settings.inc.php |
Configuration |
config/settings.old.php |
Configuration |
config/xml/* |
Configuration |
config/themes/* |
Configuration |
!config/xml/themes/default.xml |
Configuration |
themes/*/config/settings_*.json |
Configuration |
app/config/parameters.old.yml |
Configuration |
app/config/config.php |
Configuration |
Thèmes, modules et surcharges
| Motif | Ce qu’il ignore |
|---|---|
modules/* |
Thèmes, modules et surcharges |
override/* |
Thèmes, modules et surcharges |
themes/*/ |
Thèmes, modules et surcharges |
!themes/classic |
Thèmes, modules et surcharges |
!themes/_core |
Thèmes, modules et surcharges |
!themes/_libraries |
Thèmes, modules et surcharges |
Composants tiers et dépendances
| Motif | Ce qu’il ignore |
|---|---|
bower_components/ |
Composants tiers et dépendances |
node_modules/ |
Dépendances Node.js |
composer.phar |
Composants tiers et dépendances |
php-cs-fixer |
Composants tiers et dépendances |
.grunt/* |
Composants tiers et dépendances |
Traductions et modèles de courriels
| Motif | Ce qu’il ignore |
|---|---|
translations/* |
Traductions et modèles de courriels |
mails/* |
Traductions et modèles de courriels |
!mails/themes/ |
Traductions et modèles de courriels |
!mails/_partials/ |
Traductions et modèles de courriels |
themes/default-bootstrap/lang/* |
Traductions et modèles de courriels |
themes/default-bootstrap/modules/*/translations/*.php |
Traductions et modèles de courriels |
themes/default-bootstrap/mails/* |
Traductions et modèles de courriels |
!themes/default-bootstrap/mails/en/ |
Traductions et modèles de courriels |
themes/default-bootstrap/modules/*/mails/* |
Traductions et modèles de courriels |
!themes/default-bootstrap/modules/*/mails/en |
Traductions et modèles de courriels |
DIVERS
| Motif | Ce qu’il ignore |
|---|---|
*sitemap.xml |
DIVERS |
/robots.txt |
DIVERS |
Symfony
| Motif | Ce qu’il ignore |
|---|---|
/bin/ |
Symfony |
/app/Resources/geoip/GeoLite2-City.mmdb |
Symfony |
/app/Resources/translations/* |
Symfony |
!/app/Resources/translations/default |
Symfony |
/app/config/parameters.yml |
Symfony |
/app/config/parameters.php |
Symfony |
/build/ |
Symfony |
/phpunit.xml |
Symfony |
/var/* |
Symfony |
!/var/cache |
Symfony |
/var/cache/* |
Symfony |
!var/cache/.gitkeep |
Symfony |
!/var/logs |
Symfony |
/var/logs/* |
Symfony |
!var/logs/.gitkeep |
Symfony |
!/var/sessions |
Symfony |
/var/sessions/* |
Symfony |
!var/sessions/.gitkeep |
Symfony |
!var/SymfonyRequirements.php |
Symfony |
/vendor/ |
Symfony |
/web/bundles/ |
Symfony |
Comment utiliser ce .gitignore pour PrestaShop
- Copiez les règles PrestaShop ci-dessus, ou téléchargez directement le fichier.
- Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
- Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
- Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.