Ludovic Frank Gitignore

.gitignore priekš PrestaShop

135 ignorē PrestaShop noteikumus, kas ir gatavi kopēšanai jūsu repozitorijā.

E-komercijas platforma

Pilnīgs .gitignore priekš PrestaShop

# Ģenerē LFGitignore - https://lfgitignore.com
# Izveidots: 2026-10-31 23:00:47 UTC
# Tehnoloģijas: Prestashop

### Prestashop ###
/.htaccess
# Žurnāla fails
*.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 atkarības
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/

Ko šie PrestaShop noteikumi faktiski ignorē

Katrs turpmāk minētais raksts un skaidrojums, kāpēc tas jāiekļauj .gitignore failā.

Kešatmiņa, temp un personiskie faili

Raksts Ko tas ignorē
/.htaccess Kešatmiņa, temp un personiskie faili
*.log Žurnāla fails

Kešatmiņa

Raksts Ko tas ignorē
/cache/* Kešatmiņa
!/cache/.htaccess Kešatmiņa
!/cache/cachefs/index.php Kešatmiņa
!/cache/deprecated.txt Kešatmiņa
!/cache/index.php Kešatmiņa
!/cache/purifier/index.php Kešatmiņa
!/cache/push/activity Kešatmiņa
!/cache/push/index.php Kešatmiņa
!/cache/push/trends Kešatmiņa
!/cache/sandbox/index.php Kešatmiņa
!/cache/smarty/cache/index.php Kešatmiņa
!/cache/smarty/compile/index.php Kešatmiņa
!/cache/smarty/index.php Kešatmiņa
!/cache/tcpdf/index.php Kešatmiņa

Lejupielādēt

Raksts Ko tas ignorē
/download/* Lejupielādēt
!/download/.htaccess Lejupielādēt
!/download/index.php Lejupielādēt

Attēli

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

Augšupielādēt

Raksts Ko tas ignorē
/upload/* Augšupielādēt
!/upload/.htaccess Augšupielādēt
/vendor/* Augšupielādēt
/docs/phpdoc-sf/ Augšupielādēt
/composer.lock Augšupielādēt
*.hot-update.js Augšupielādēt
*.hot-update.json Augšupielādēt
/admin-dev/autoupgrade/* Augšupielādēt
!/admin-dev/autoupgrade/index.php Augšupielādēt
!/admin-dev/autoupgrade/backup/index.php Augšupielādēt
/admin-dev/backups/* Augšupielādēt
!/admin-dev/backups/.htaccess Augšupielādēt
/admin-dev/import/* Augšupielādēt
!/admin-dev/import/.htaccess Augšupielādēt
!/admin-dev/import/index.php Augšupielādēt
/admin-dev/export/* Augšupielādēt
!/admin-dev/export/.htaccess Augšupielādēt
!/admin-dev/export/index.php Augšupielādēt

Lejupielādētie RTL faili

Raksts Ko tas ignorē
/admin-dev/themes/default/css/bundle/default_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/bundle/shared_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/font_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/overrides_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/default/public/theme_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/new-theme/css/module/drop_rtl.css Lejupielādētie RTL faili
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css Lejupielādētie RTL faili
themes/*/cache/* Lejupielādētie RTL faili

Konfig

Raksts Ko tas ignorē
config/settings.inc.php Konfig
config/settings.old.php Konfig
config/xml/* Konfig
config/themes/* Konfig
!config/xml/themes/default.xml Konfig
themes/*/config/settings_*.json Konfig
app/config/parameters.old.yml Konfig
app/config/config.php Konfig

Motīvi, moduļi un ignorēšana

Raksts Ko tas ignorē
modules/* Motīvi, moduļi un ignorēšana
override/* Motīvi, moduļi un ignorēšana
themes/*/ Motīvi, moduļi un ignorēšana
!themes/classic Motīvi, moduļi un ignorēšana
!themes/_core Motīvi, moduļi un ignorēšana
!themes/_libraries Motīvi, moduļi un ignorēšana

Pārdevēji un atkarības

Raksts Ko tas ignorē
bower_components/ Pārdevēji un atkarības
node_modules/ Node.js atkarības
composer.phar Pārdevēji un atkarības
php-cs-fixer Pārdevēji un atkarības
.grunt/* Pārdevēji un atkarības

Tulkojumi un e-pasta veidnes

Raksts Ko tas ignorē
translations/* Tulkojumi un e-pasta veidnes
mails/* Tulkojumi un e-pasta veidnes
!mails/themes/ Tulkojumi un e-pasta veidnes
!mails/_partials/ Tulkojumi un e-pasta veidnes
themes/default-bootstrap/lang/* Tulkojumi un e-pasta veidnes
themes/default-bootstrap/modules/*/translations/*.php Tulkojumi un e-pasta veidnes
themes/default-bootstrap/mails/* Tulkojumi un e-pasta veidnes
!themes/default-bootstrap/mails/en/ Tulkojumi un e-pasta veidnes
themes/default-bootstrap/modules/*/mails/* Tulkojumi un e-pasta veidnes
!themes/default-bootstrap/modules/*/mails/en Tulkojumi un e-pasta veidnes

DAŽĀDI

Raksts Ko tas ignorē
*sitemap.xml DAŽĀDI
/robots.txt DAŽĀDI

Symfony

Raksts Ko tas ignorē
/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

Kā lietot šo .gitignore failu tehnoloģijai PrestaShop

  1. Kopējiet iepriekš minētos PrestaShop noteikumus vai lejupielādējiet failu tieši.
  2. Git repozitorija saknē izveidojiet failu ar nosaukumu .gitignore un ielīmējiet tajā noteikumus.
  3. Ja daži no šiem failiem jau ir izsekoti, palaidiet git rm -r --cached . un pēc tam veiciet vēlreiz — Git ignorēšanas noteikumus piemēro tikai neizsekotajiem failiem.
  4. Iekļaujiet .gitignore failu komitā, lai visai komandai būtu vienādi noteikumi.

Citas E-komercija .gitignore veidnes

Skatiet katru E-komercija veidni