Ludovic Frank Gitignore

.gitignore za PrestaShop

135 pravil za prezrtje za PrestaShop, pripravljenih za kopiranje v skladišče.

Platforma za e-trgovino

Popoln .gitignore za PrestaShop

# Ustvaril LFGitignore - https://lfgitignore.com
# Ustvarjeno: 2026-10-31 21:54:36 UTC
# Tehnologije: Prestashop

### Prestashop ###
/.htaccess
# Dnevniška datoteka
*.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 odvisnosti
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/

Kaj pravila za PrestaShop dejansko prezrejo

Vsak spodnji vzorec in zakaj sodi v vaš .gitignore.

Predpomnilnik, začasne in osebne datoteke

Vzorec Kaj pravilo prezre
/.htaccess Predpomnilnik, začasne in osebne datoteke
*.log Dnevniška datoteka

Predpomnilnik

Vzorec Kaj pravilo prezre
/cache/* Predpomnilnik
!/cache/.htaccess Predpomnilnik
!/cache/cachefs/index.php Predpomnilnik
!/cache/deprecated.txt Predpomnilnik
!/cache/index.php Predpomnilnik
!/cache/purifier/index.php Predpomnilnik
!/cache/push/activity Predpomnilnik
!/cache/push/index.php Predpomnilnik
!/cache/push/trends Predpomnilnik
!/cache/sandbox/index.php Predpomnilnik
!/cache/smarty/cache/index.php Predpomnilnik
!/cache/smarty/compile/index.php Predpomnilnik
!/cache/smarty/index.php Predpomnilnik
!/cache/tcpdf/index.php Predpomnilnik

Prenos

Vzorec Kaj pravilo prezre
/download/* Prenos
!/download/.htaccess Prenos
!/download/index.php Prenos

Slike

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

Naloži

Vzorec Kaj pravilo prezre
/upload/* Naloži
!/upload/.htaccess Naloži
/vendor/* Naloži
/docs/phpdoc-sf/ Naloži
/composer.lock Naloži
*.hot-update.js Naloži
*.hot-update.json Naloži
/admin-dev/autoupgrade/* Naloži
!/admin-dev/autoupgrade/index.php Naloži
!/admin-dev/autoupgrade/backup/index.php Naloži
/admin-dev/backups/* Naloži
!/admin-dev/backups/.htaccess Naloži
/admin-dev/import/* Naloži
!/admin-dev/import/.htaccess Naloži
!/admin-dev/import/index.php Naloži
/admin-dev/export/* Naloži
!/admin-dev/export/.htaccess Naloži
!/admin-dev/export/index.php Naloži

Prenesene datoteke RTL

Vzorec Kaj pravilo prezre
/admin-dev/themes/default/css/bundle/default_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/bundle/shared_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/font_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/overrides_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css Prenesene datoteke RTL
/admin-dev/themes/default/public/theme_rtl.css Prenesene datoteke RTL
/admin-dev/themes/new-theme/css/module/drop_rtl.css Prenesene datoteke RTL
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css Prenesene datoteke RTL
themes/*/cache/* Prenesene datoteke RTL

Konfiguracija

Vzorec Kaj pravilo prezre
config/settings.inc.php Konfiguracija
config/settings.old.php Konfiguracija
config/xml/* Konfiguracija
config/themes/* Konfiguracija
!config/xml/themes/default.xml Konfiguracija
themes/*/config/settings_*.json Konfiguracija
app/config/parameters.old.yml Konfiguracija
app/config/config.php Konfiguracija

Teme, moduli in preglasitve

Vzorec Kaj pravilo prezre
modules/* Teme, moduli in preglasitve
override/* Teme, moduli in preglasitve
themes/*/ Teme, moduli in preglasitve
!themes/classic Teme, moduli in preglasitve
!themes/_core Teme, moduli in preglasitve
!themes/_libraries Teme, moduli in preglasitve

Prodajalci in odvisnosti

Vzorec Kaj pravilo prezre
bower_components/ Prodajalci in odvisnosti
node_modules/ Node.js odvisnosti
composer.phar Prodajalci in odvisnosti
php-cs-fixer Prodajalci in odvisnosti
.grunt/* Prodajalci in odvisnosti

Prevodi in predloge za e-pošto

Vzorec Kaj pravilo prezre
translations/* Prevodi in predloge za e-pošto
mails/* Prevodi in predloge za e-pošto
!mails/themes/ Prevodi in predloge za e-pošto
!mails/_partials/ Prevodi in predloge za e-pošto
themes/default-bootstrap/lang/* Prevodi in predloge za e-pošto
themes/default-bootstrap/modules/*/translations/*.php Prevodi in predloge za e-pošto
themes/default-bootstrap/mails/* Prevodi in predloge za e-pošto
!themes/default-bootstrap/mails/en/ Prevodi in predloge za e-pošto
themes/default-bootstrap/modules/*/mails/* Prevodi in predloge za e-pošto
!themes/default-bootstrap/modules/*/mails/en Prevodi in predloge za e-pošto

RAZNO

Vzorec Kaj pravilo prezre
*sitemap.xml RAZNO
/robots.txt RAZNO

Symfony

Vzorec Kaj pravilo prezre
/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

Kako uporabljati ta .gitignore za PrestaShop

  1. Kopirajte zgornja pravila PrestaShop ali neposredno prenesite datoteko.
  2. Ustvarite datoteko z imenom .gitignore v korenu svojega skladišča Git in vanjo prilepite pravila.
  3. Če se nekaterim od teh datotek že sledi, zaženite git rm -r --cached . in nato ponovno potrdite — Git uporablja pravila prezrtja samo za datoteke, ki jim ni sledi.
  4. Potrdite datoteko .gitignore, da bo vsa ekipa uporabljala enaka pravila.

Druge predloge E-poslovanje .gitignore

Oglejte si vsako predlogo E-poslovanje