.gitignore per PrestaShop
135 regole di esclusione per PrestaShop, pronte da copiare nel repository.
Piattaforma di commercio elettronico
Il .gitignore completo per PrestaShop
# Generato da LFGitignore - https://lfgitignore.com
# Creato: 2026-10-13 16:29:38 UTC
# Tecnologie: Prestashop
### Prestashop ###
/.htaccess
# File di log
*.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/
# Dipendenze di 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/
Cosa escludono le regole di PrestaShop
Tutti i pattern e i motivi per includerli nel tuo .gitignore.
Cache, file temporanei e personali
| Schema di esclusione | Cosa esclude |
|---|---|
/.htaccess |
Cache, file temporanei e personali |
*.log |
File di log |
Memoria cache
| Schema di esclusione | Cosa esclude |
|---|---|
/cache/* |
Memoria cache |
!/cache/.htaccess |
Memoria cache |
!/cache/cachefs/index.php |
Memoria cache |
!/cache/deprecated.txt |
Memoria cache |
!/cache/index.php |
Memoria cache |
!/cache/purifier/index.php |
Memoria cache |
!/cache/push/activity |
Memoria cache |
!/cache/push/index.php |
Memoria cache |
!/cache/push/trends |
Memoria cache |
!/cache/sandbox/index.php |
Memoria cache |
!/cache/smarty/cache/index.php |
Memoria cache |
!/cache/smarty/compile/index.php |
Memoria cache |
!/cache/smarty/index.php |
Memoria cache |
!/cache/tcpdf/index.php |
Memoria cache |
Scaricamento
| Schema di esclusione | Cosa esclude |
|---|---|
/download/* |
Scaricamento |
!/download/.htaccess |
Scaricamento |
!/download/index.php |
Scaricamento |
Immagini
| Schema di esclusione | Cosa esclude |
|---|---|
/img/* |
Immagini |
!/img/.htaccess |
Immagini |
!/img/index.php |
Immagini |
!/img/404.gif |
Immagini |
!/img/bg_500.png |
Immagini |
!/img/bg_loader.png |
Immagini |
!/img/favicon.ico |
Immagini |
!/img/loader.gif |
Immagini |
!/img/loadingAnimation.gif |
Immagini |
!/img/logo.jpg |
Immagini |
!/img/logo.png |
Immagini |
!/img/logo_invoice.jpg |
Immagini |
!/img/logo_stores.png |
Immagini |
!/img/macFFBgHack.png |
Immagini |
!/img/prestashop-avatar.png |
Immagini |
!/img/prestashop@2x.png |
Immagini |
!/img/preston-login-wink@2x.png |
Immagini |
!/img/preston-login@2x.png |
Immagini |
!/img/questionmark.png |
Immagini |
!/img/genders/index.php |
Immagini |
!/img/admin/index.php |
Immagini |
!/img/c/index.php |
Immagini |
!/img/cms/index.php |
Immagini |
!/img/co/index.php |
Immagini |
!/img/jquery-ui |
Immagini |
!/img/l/index.php |
Immagini |
!/img/m/index.php |
Immagini |
!/img/os/index.php |
Immagini |
!/img/p/index.php |
Immagini |
!/img/s/index.php |
Immagini |
!/img/scenes |
Immagini |
!/img/st/index.php |
Immagini |
!/img/su/index.php |
Immagini |
!/img/t/index.php |
Immagini |
!/img/tmp/index.php |
Immagini |
Caricamento
| Schema di esclusione | Cosa esclude |
|---|---|
/upload/* |
Caricamento |
!/upload/.htaccess |
Caricamento |
/vendor/* |
Caricamento |
/docs/phpdoc-sf/ |
Caricamento |
/composer.lock |
Caricamento |
*.hot-update.js |
Caricamento |
*.hot-update.json |
Caricamento |
/admin-dev/autoupgrade/* |
Caricamento |
!/admin-dev/autoupgrade/index.php |
Caricamento |
!/admin-dev/autoupgrade/backup/index.php |
Caricamento |
/admin-dev/backups/* |
Caricamento |
!/admin-dev/backups/.htaccess |
Caricamento |
/admin-dev/import/* |
Caricamento |
!/admin-dev/import/.htaccess |
Caricamento |
!/admin-dev/import/index.php |
Caricamento |
/admin-dev/export/* |
Caricamento |
!/admin-dev/export/.htaccess |
Caricamento |
!/admin-dev/export/index.php |
Caricamento |
File RTL scaricati
| Schema di esclusione | Cosa esclude |
|---|---|
/admin-dev/themes/default/css/bundle/default_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/bundle/shared_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/font_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/overrides_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css |
File RTL scaricati |
/admin-dev/themes/default/public/theme_rtl.css |
File RTL scaricati |
/admin-dev/themes/new-theme/css/module/drop_rtl.css |
File RTL scaricati |
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css |
File RTL scaricati |
themes/*/cache/* |
File RTL scaricati |
Configurazione
| Schema di esclusione | Cosa esclude |
|---|---|
config/settings.inc.php |
Configurazione |
config/settings.old.php |
Configurazione |
config/xml/* |
Configurazione |
config/themes/* |
Configurazione |
!config/xml/themes/default.xml |
Configurazione |
themes/*/config/settings_*.json |
Configurazione |
app/config/parameters.old.yml |
Configurazione |
app/config/config.php |
Configurazione |
Temi, moduli e override
| Schema di esclusione | Cosa esclude |
|---|---|
modules/* |
Temi, moduli e override |
override/* |
Temi, moduli e override |
themes/*/ |
Temi, moduli e override |
!themes/classic |
Temi, moduli e override |
!themes/_core |
Temi, moduli e override |
!themes/_libraries |
Temi, moduli e override |
Fornitori e dipendenze
| Schema di esclusione | Cosa esclude |
|---|---|
bower_components/ |
Fornitori e dipendenze |
node_modules/ |
Dipendenze di Node.js |
composer.phar |
Fornitori e dipendenze |
php-cs-fixer |
Fornitori e dipendenze |
.grunt/* |
Fornitori e dipendenze |
Traduzioni e modelli di email
| Schema di esclusione | Cosa esclude |
|---|---|
translations/* |
Traduzioni e modelli di email |
mails/* |
Traduzioni e modelli di email |
!mails/themes/ |
Traduzioni e modelli di email |
!mails/_partials/ |
Traduzioni e modelli di email |
themes/default-bootstrap/lang/* |
Traduzioni e modelli di email |
themes/default-bootstrap/modules/*/translations/*.php |
Traduzioni e modelli di email |
themes/default-bootstrap/mails/* |
Traduzioni e modelli di email |
!themes/default-bootstrap/mails/en/ |
Traduzioni e modelli di email |
themes/default-bootstrap/modules/*/mails/* |
Traduzioni e modelli di email |
!themes/default-bootstrap/modules/*/mails/en |
Traduzioni e modelli di email |
Varie
| Schema di esclusione | Cosa esclude |
|---|---|
*sitemap.xml |
Varie |
/robots.txt |
Varie |
Symfony
| Schema di esclusione | Cosa esclude |
|---|---|
/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 |
Come usare questo .gitignore per PrestaShop
- Copia le regole di PrestaShop qui sopra oppure scarica direttamente il file.
- Crea un file chiamato .gitignore nella radice del repository Git e incolla le regole al suo interno.
- Se Git tiene già traccia di alcuni di questi file, esegui git rm -r --cached . e crea un nuovo commit: Git applica le regole di esclusione solo ai file non tracciati.
- Includi .gitignore in un commit affinché tutto il team condivida le stesse regole.