.gitignore pre PrestaShop

135 pravidiel ignorovania pre PrestaShop, pripravených na skopírovanie do repozitára.

Platforma elektronického obchodu

Kompletný .gitignore pre PrestaShop

# Vygenerované pomocou LFGitignore - https://lfgitignore.com
# Vytvorené: 2026-10-13 16:29:55 UTC
# Technológie: Prestashop

### Prestashop ###
/.htaccess
# Súbor protokolu
*.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/
# Závislosti 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/

Čo tieto pravidlá pre PrestaShop skutočne ignorujú

Všetky vzory nižšie aj s vysvetlením, prečo patria do vášho .gitignore.

Vyrovnávacia pamäť, dočasné a osobné súbory

Vzor Čo ignoruje
/.htaccess Vyrovnávacia pamäť, dočasné a osobné súbory
*.log Súbor protokolu

Vyrovnávacia pamäť

Vzor Čo ignoruje
/cache/* Vyrovnávacia pamäť
!/cache/.htaccess Vyrovnávacia pamäť
!/cache/cachefs/index.php Vyrovnávacia pamäť
!/cache/deprecated.txt Vyrovnávacia pamäť
!/cache/index.php Vyrovnávacia pamäť
!/cache/purifier/index.php Vyrovnávacia pamäť
!/cache/push/activity Vyrovnávacia pamäť
!/cache/push/index.php Vyrovnávacia pamäť
!/cache/push/trends Vyrovnávacia pamäť
!/cache/sandbox/index.php Vyrovnávacia pamäť
!/cache/smarty/cache/index.php Vyrovnávacia pamäť
!/cache/smarty/compile/index.php Vyrovnávacia pamäť
!/cache/smarty/index.php Vyrovnávacia pamäť
!/cache/tcpdf/index.php Vyrovnávacia pamäť

Stiahnutie

Vzor Čo ignoruje
/download/* Stiahnutie
!/download/.htaccess Stiahnutie
!/download/index.php Stiahnutie

Obrázky

Vzor Čo ignoruje
/img/* Obrázky
!/img/.htaccess Obrázky
!/img/index.php Obrázky
!/img/404.gif Obrázky
!/img/bg_500.png Obrázky
!/img/bg_loader.png Obrázky
!/img/favicon.ico Obrázky
!/img/loader.gif Obrázky
!/img/loadingAnimation.gif Obrázky
!/img/logo.jpg Obrázky
!/img/logo.png Obrázky
!/img/logo_invoice.jpg Obrázky
!/img/logo_stores.png Obrázky
!/img/macFFBgHack.png Obrázky
!/img/prestashop-avatar.png Obrázky
!/img/prestashop@2x.png Obrázky
!/img/preston-login-wink@2x.png Obrázky
!/img/preston-login@2x.png Obrázky
!/img/questionmark.png Obrázky
!/img/genders/index.php Obrázky
!/img/admin/index.php Obrázky
!/img/c/index.php Obrázky
!/img/cms/index.php Obrázky
!/img/co/index.php Obrázky
!/img/jquery-ui Obrázky
!/img/l/index.php Obrázky
!/img/m/index.php Obrázky
!/img/os/index.php Obrázky
!/img/p/index.php Obrázky
!/img/s/index.php Obrázky
!/img/scenes Obrázky
!/img/st/index.php Obrázky
!/img/su/index.php Obrázky
!/img/t/index.php Obrázky
!/img/tmp/index.php Obrázky

Nahrávanie

Vzor Čo ignoruje
/upload/* Nahrávanie
!/upload/.htaccess Nahrávanie
/vendor/* Nahrávanie
/docs/phpdoc-sf/ Nahrávanie
/composer.lock Nahrávanie
*.hot-update.js Nahrávanie
*.hot-update.json Nahrávanie
/admin-dev/autoupgrade/* Nahrávanie
!/admin-dev/autoupgrade/index.php Nahrávanie
!/admin-dev/autoupgrade/backup/index.php Nahrávanie
/admin-dev/backups/* Nahrávanie
!/admin-dev/backups/.htaccess Nahrávanie
/admin-dev/import/* Nahrávanie
!/admin-dev/import/.htaccess Nahrávanie
!/admin-dev/import/index.php Nahrávanie
/admin-dev/export/* Nahrávanie
!/admin-dev/export/.htaccess Nahrávanie
!/admin-dev/export/index.php Nahrávanie

Stiahnuté súbory RTL

Vzor Čo ignoruje
/admin-dev/themes/default/css/bundle/default_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/bundle/shared_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/font_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/overrides_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/default/public/theme_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/new-theme/css/module/drop_rtl.css Stiahnuté súbory RTL
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css Stiahnuté súbory RTL
themes/*/cache/* Stiahnuté súbory RTL

Konfigurácia

Vzor Čo ignoruje
config/settings.inc.php Konfigurácia
config/settings.old.php Konfigurácia
config/xml/* Konfigurácia
config/themes/* Konfigurácia
!config/xml/themes/default.xml Konfigurácia
themes/*/config/settings_*.json Konfigurácia
app/config/parameters.old.yml Konfigurácia
app/config/config.php Konfigurácia

Témy, moduly a prepisy nastavení

Vzor Čo ignoruje
modules/* Témy, moduly a prepisy nastavení
override/* Témy, moduly a prepisy nastavení
themes/*/ Témy, moduly a prepisy nastavení
!themes/classic Témy, moduly a prepisy nastavení
!themes/_core Témy, moduly a prepisy nastavení
!themes/_libraries Témy, moduly a prepisy nastavení

Externé knižnice a závislosti

Vzor Čo ignoruje
bower_components/ Externé knižnice a závislosti
node_modules/ Závislosti Node.js
composer.phar Externé knižnice a závislosti
php-cs-fixer Externé knižnice a závislosti
.grunt/* Externé knižnice a závislosti

Preklady a e-mailové šablóny

Vzor Čo ignoruje
translations/* Preklady a e-mailové šablóny
mails/* Preklady a e-mailové šablóny
!mails/themes/ Preklady a e-mailové šablóny
!mails/_partials/ Preklady a e-mailové šablóny
themes/default-bootstrap/lang/* Preklady a e-mailové šablóny
themes/default-bootstrap/modules/*/translations/*.php Preklady a e-mailové šablóny
themes/default-bootstrap/mails/* Preklady a e-mailové šablóny
!themes/default-bootstrap/mails/en/ Preklady a e-mailové šablóny
themes/default-bootstrap/modules/*/mails/* Preklady a e-mailové šablóny
!themes/default-bootstrap/modules/*/mails/en Preklady a e-mailové šablóny

RÔZNE

Vzor Čo ignoruje
*sitemap.xml RÔZNE
/robots.txt RÔZNE

Symfony

Vzor Čo ignoruje
/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

Ako používať tento .gitignore pre PrestaShop

  1. Skopírujte pravidlá pre PrestaShop vyššie alebo si súbor priamo stiahnite.
  2. V koreňovom adresári repozitára Git vytvorte súbor s názvom .gitignore a vložte doň pravidlá.
  3. Ak sa niektoré súbory už sledujú, spustite git rm -r --cached . a vytvorte nový commit — Git uplatňuje pravidlá ignorovania iba na nesledované súbory.
  4. Pridajte .gitignore do commitu, aby celý tím zdieľal rovnaké pravidlá.

Ďalšie šablóny .gitignore: Elektronický obchod

Zobraziť všetky šablóny: Elektronický obchod