.gitignore for PrestaShop

135 ignoreringsregler for PrestaShop, klare til å kopieres inn i kodelageret ditt.

Netthandelsplattform

Den komplette .gitignore-filen for PrestaShop

# Generert av LFGitignore - https://lfgitignore.com
# Opprettet: 2026-10-13 16:15:53 UTC
# Teknologier: Prestashop

### Prestashop ###
/.htaccess
# Loggfil
*.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/
# Node.js-avhengigheter
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/

Hva disse PrestaShop-reglene faktisk ignorerer

Alle mønstrene nedenfor, og hvorfor de hører hjemme i .gitignore-filen din.

Hurtigbuffer, midlertidige og personlige filer

Mønster Hva det ignorerer
/.htaccess Hurtigbuffer, midlertidige og personlige filer
*.log Loggfil

Hurtigbuffer

Mønster Hva det ignorerer
/cache/* Hurtigbuffer
!/cache/.htaccess Hurtigbuffer
!/cache/cachefs/index.php Hurtigbuffer
!/cache/deprecated.txt Hurtigbuffer
!/cache/index.php Hurtigbuffer
!/cache/purifier/index.php Hurtigbuffer
!/cache/push/activity Hurtigbuffer
!/cache/push/index.php Hurtigbuffer
!/cache/push/trends Hurtigbuffer
!/cache/sandbox/index.php Hurtigbuffer
!/cache/smarty/cache/index.php Hurtigbuffer
!/cache/smarty/compile/index.php Hurtigbuffer
!/cache/smarty/index.php Hurtigbuffer
!/cache/tcpdf/index.php Hurtigbuffer

Nedlasting

Mønster Hva det ignorerer
/download/* Nedlasting
!/download/.htaccess Nedlasting
!/download/index.php Nedlasting

Bilder

Mønster Hva det ignorerer
/img/* Bilder
!/img/.htaccess Bilder
!/img/index.php Bilder
!/img/404.gif Bilder
!/img/bg_500.png Bilder
!/img/bg_loader.png Bilder
!/img/favicon.ico Bilder
!/img/loader.gif Bilder
!/img/loadingAnimation.gif Bilder
!/img/logo.jpg Bilder
!/img/logo.png Bilder
!/img/logo_invoice.jpg Bilder
!/img/logo_stores.png Bilder
!/img/macFFBgHack.png Bilder
!/img/prestashop-avatar.png Bilder
!/img/prestashop@2x.png Bilder
!/img/preston-login-wink@2x.png Bilder
!/img/preston-login@2x.png Bilder
!/img/questionmark.png Bilder
!/img/genders/index.php Bilder
!/img/admin/index.php Bilder
!/img/c/index.php Bilder
!/img/cms/index.php Bilder
!/img/co/index.php Bilder
!/img/jquery-ui Bilder
!/img/l/index.php Bilder
!/img/m/index.php Bilder
!/img/os/index.php Bilder
!/img/p/index.php Bilder
!/img/s/index.php Bilder
!/img/scenes Bilder
!/img/st/index.php Bilder
!/img/su/index.php Bilder
!/img/t/index.php Bilder
!/img/tmp/index.php Bilder

Opplasting

Mønster Hva det ignorerer
/upload/* Opplasting
!/upload/.htaccess Opplasting
/vendor/* Opplasting
/docs/phpdoc-sf/ Opplasting
/composer.lock Opplasting
*.hot-update.js Opplasting
*.hot-update.json Opplasting
/admin-dev/autoupgrade/* Opplasting
!/admin-dev/autoupgrade/index.php Opplasting
!/admin-dev/autoupgrade/backup/index.php Opplasting
/admin-dev/backups/* Opplasting
!/admin-dev/backups/.htaccess Opplasting
/admin-dev/import/* Opplasting
!/admin-dev/import/.htaccess Opplasting
!/admin-dev/import/index.php Opplasting
/admin-dev/export/* Opplasting
!/admin-dev/export/.htaccess Opplasting
!/admin-dev/export/index.php Opplasting

Nedlastede RTL-filer

Mønster Hva det ignorerer
/admin-dev/themes/default/css/bundle/default_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/bundle/shared_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/font_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/overrides_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css Nedlastede RTL-filer
/admin-dev/themes/default/public/theme_rtl.css Nedlastede RTL-filer
/admin-dev/themes/new-theme/css/module/drop_rtl.css Nedlastede RTL-filer
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css Nedlastede RTL-filer
themes/*/cache/* Nedlastede RTL-filer

Konfigurasjon

Mønster Hva det ignorerer
config/settings.inc.php Konfigurasjon
config/settings.old.php Konfigurasjon
config/xml/* Konfigurasjon
config/themes/* Konfigurasjon
!config/xml/themes/default.xml Konfigurasjon
themes/*/config/settings_*.json Konfigurasjon
app/config/parameters.old.yml Konfigurasjon
app/config/config.php Konfigurasjon

Temaer, moduler og overstyringer

Mønster Hva det ignorerer
modules/* Temaer, moduler og overstyringer
override/* Temaer, moduler og overstyringer
themes/*/ Temaer, moduler og overstyringer
!themes/classic Temaer, moduler og overstyringer
!themes/_core Temaer, moduler og overstyringer
!themes/_libraries Temaer, moduler og overstyringer

Leverandører og avhengigheter

Mønster Hva det ignorerer
bower_components/ Leverandører og avhengigheter
node_modules/ Node.js-avhengigheter
composer.phar Leverandører og avhengigheter
php-cs-fixer Leverandører og avhengigheter
.grunt/* Leverandører og avhengigheter

Oversettelser og e-postmaler

Mønster Hva det ignorerer
translations/* Oversettelser og e-postmaler
mails/* Oversettelser og e-postmaler
!mails/themes/ Oversettelser og e-postmaler
!mails/_partials/ Oversettelser og e-postmaler
themes/default-bootstrap/lang/* Oversettelser og e-postmaler
themes/default-bootstrap/modules/*/translations/*.php Oversettelser og e-postmaler
themes/default-bootstrap/mails/* Oversettelser og e-postmaler
!themes/default-bootstrap/mails/en/ Oversettelser og e-postmaler
themes/default-bootstrap/modules/*/mails/* Oversettelser og e-postmaler
!themes/default-bootstrap/modules/*/mails/en Oversettelser og e-postmaler

DIVERSE

Mønster Hva det ignorerer
*sitemap.xml DIVERSE
/robots.txt DIVERSE

Symfony

Mønster Hva det ignorerer
/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

Slik bruker du denne .gitignore-filen for PrestaShop

  1. Kopier PrestaShop-reglene ovenfor, eller last ned filen direkte.
  2. Opprett en fil som heter .gitignore i roten av Git-kodelageret ditt, og lim inn reglene.
  3. Hvis noen av disse filene allerede spores, kjører du git rm -r --cached . og sjekker inn på nytt — Git bruker bare ignoreringsregler på filer som ikke spores.
  4. Sjekk inn .gitignore slik at alle på teamet deler de samme reglene.

Andre .gitignore-maler for Netthandel

Se alle maler for Netthandel