.gitignore dla PrestaShop
135 reguł ignorowania dla PrestaShop, gotowych do skopiowania do repozytorium.
Platforma e-commerce
Kompletny plik .gitignore dla PrestaShop
# Wygenerowano przez LFGitignore - https://lfgitignore.com
# Utworzono: 2026-10-13 16:30:16 UTC
# Technologie: Prestashop
### Prestashop ###
/.htaccess
# Plik dziennika
*.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/
# Zależności 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/
Co ignorują te reguły dla PrestaShop
Każdy z poniższych wzorców wraz z wyjaśnieniem, dlaczego warto umieścić go w .gitignore.
Pamięć podręczna, pliki tymczasowe i osobiste
| Wzorzec | Co ignoruje |
|---|---|
/.htaccess |
Pamięć podręczna, pliki tymczasowe i osobiste |
*.log |
Plik dziennika |
Pamięć podręczna
| Wzorzec | Co ignoruje |
|---|---|
/cache/* |
Pamięć podręczna |
!/cache/.htaccess |
Pamięć podręczna |
!/cache/cachefs/index.php |
Pamięć podręczna |
!/cache/deprecated.txt |
Pamięć podręczna |
!/cache/index.php |
Pamięć podręczna |
!/cache/purifier/index.php |
Pamięć podręczna |
!/cache/push/activity |
Pamięć podręczna |
!/cache/push/index.php |
Pamięć podręczna |
!/cache/push/trends |
Pamięć podręczna |
!/cache/sandbox/index.php |
Pamięć podręczna |
!/cache/smarty/cache/index.php |
Pamięć podręczna |
!/cache/smarty/compile/index.php |
Pamięć podręczna |
!/cache/smarty/index.php |
Pamięć podręczna |
!/cache/tcpdf/index.php |
Pamięć podręczna |
Pobieranie
| Wzorzec | Co ignoruje |
|---|---|
/download/* |
Pobieranie |
!/download/.htaccess |
Pobieranie |
!/download/index.php |
Pobieranie |
Images
| Wzorzec | Co ignoruje |
|---|---|
/img/* |
Images |
!/img/.htaccess |
Images |
!/img/index.php |
Images |
!/img/404.gif |
Images |
!/img/bg_500.png |
Images |
!/img/bg_loader.png |
Images |
!/img/favicon.ico |
Images |
!/img/loader.gif |
Images |
!/img/loadingAnimation.gif |
Images |
!/img/logo.jpg |
Images |
!/img/logo.png |
Images |
!/img/logo_invoice.jpg |
Images |
!/img/logo_stores.png |
Images |
!/img/macFFBgHack.png |
Images |
!/img/prestashop-avatar.png |
Images |
!/img/prestashop@2x.png |
Images |
!/img/preston-login-wink@2x.png |
Images |
!/img/preston-login@2x.png |
Images |
!/img/questionmark.png |
Images |
!/img/genders/index.php |
Images |
!/img/admin/index.php |
Images |
!/img/c/index.php |
Images |
!/img/cms/index.php |
Images |
!/img/co/index.php |
Images |
!/img/jquery-ui |
Images |
!/img/l/index.php |
Images |
!/img/m/index.php |
Images |
!/img/os/index.php |
Images |
!/img/p/index.php |
Images |
!/img/s/index.php |
Images |
!/img/scenes |
Images |
!/img/st/index.php |
Images |
!/img/su/index.php |
Images |
!/img/t/index.php |
Images |
!/img/tmp/index.php |
Images |
Przesyłanie plików
| Wzorzec | Co ignoruje |
|---|---|
/upload/* |
Przesyłanie plików |
!/upload/.htaccess |
Przesyłanie plików |
/vendor/* |
Przesyłanie plików |
/docs/phpdoc-sf/ |
Przesyłanie plików |
/composer.lock |
Przesyłanie plików |
*.hot-update.js |
Przesyłanie plików |
*.hot-update.json |
Przesyłanie plików |
/admin-dev/autoupgrade/* |
Przesyłanie plików |
!/admin-dev/autoupgrade/index.php |
Przesyłanie plików |
!/admin-dev/autoupgrade/backup/index.php |
Przesyłanie plików |
/admin-dev/backups/* |
Przesyłanie plików |
!/admin-dev/backups/.htaccess |
Przesyłanie plików |
/admin-dev/import/* |
Przesyłanie plików |
!/admin-dev/import/.htaccess |
Przesyłanie plików |
!/admin-dev/import/index.php |
Przesyłanie plików |
/admin-dev/export/* |
Przesyłanie plików |
!/admin-dev/export/.htaccess |
Przesyłanie plików |
!/admin-dev/export/index.php |
Przesyłanie plików |
Pobrane pliki RTL
| Wzorzec | Co ignoruje |
|---|---|
/admin-dev/themes/default/css/bundle/default_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/bundle/shared_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/font_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/overrides_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/vendor/font-awesome/font-awesome_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/vendor/nv.d3_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/css/vendor/titatoggle-min_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/default/public/theme_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/new-theme/css/module/drop_rtl.css |
Pobrane pliki RTL |
/admin-dev/themes/new-theme/css/right-sidebar_rtl.css |
Pobrane pliki RTL |
themes/*/cache/* |
Pobrane pliki RTL |
Konfig
| Wzorzec | Co ignoruje |
|---|---|
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 |
Motywy, moduły i nadpisania
| Wzorzec | Co ignoruje |
|---|---|
modules/* |
Motywy, moduły i nadpisania |
override/* |
Motywy, moduły i nadpisania |
themes/*/ |
Motywy, moduły i nadpisania |
!themes/classic |
Motywy, moduły i nadpisania |
!themes/_core |
Motywy, moduły i nadpisania |
!themes/_libraries |
Motywy, moduły i nadpisania |
Zewnętrzne biblioteki i zależności
| Wzorzec | Co ignoruje |
|---|---|
bower_components/ |
Zewnętrzne biblioteki i zależności |
node_modules/ |
Zależności Node.js |
composer.phar |
Zewnętrzne biblioteki i zależności |
php-cs-fixer |
Zewnętrzne biblioteki i zależności |
.grunt/* |
Zewnętrzne biblioteki i zależności |
Tłumaczenia i szablony wiadomości e-mail
| Wzorzec | Co ignoruje |
|---|---|
translations/* |
Tłumaczenia i szablony wiadomości e-mail |
mails/* |
Tłumaczenia i szablony wiadomości e-mail |
!mails/themes/ |
Tłumaczenia i szablony wiadomości e-mail |
!mails/_partials/ |
Tłumaczenia i szablony wiadomości e-mail |
themes/default-bootstrap/lang/* |
Tłumaczenia i szablony wiadomości e-mail |
themes/default-bootstrap/modules/*/translations/*.php |
Tłumaczenia i szablony wiadomości e-mail |
themes/default-bootstrap/mails/* |
Tłumaczenia i szablony wiadomości e-mail |
!themes/default-bootstrap/mails/en/ |
Tłumaczenia i szablony wiadomości e-mail |
themes/default-bootstrap/modules/*/mails/* |
Tłumaczenia i szablony wiadomości e-mail |
!themes/default-bootstrap/modules/*/mails/en |
Tłumaczenia i szablony wiadomości e-mail |
RÓŻNE
| Wzorzec | Co ignoruje |
|---|---|
*sitemap.xml |
RÓŻNE |
/robots.txt |
RÓŻNE |
Symfony
| Wzorzec | Co 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 |
Jak używać tego pliku .gitignore dla PrestaShop
- Skopiuj powyższe reguły dla PrestaShop lub pobierz plik.
- Utwórz plik o nazwie .gitignore w katalogu głównym repozytorium Git i wklej do niego reguły.
- Jeśli Git już śledzi niektóre z tych plików, uruchom git rm -r --cached ., a następnie utwórz nowy commit — Git stosuje reguły ignorowania tylko do nieśledzonych plików.
- Dodaj .gitignore do commita, aby cały zespół korzystał z tych samych reguł.