Description
This is an edited version of the .gitignore found on the Prestashop github.
Doesn't exlude core.
Excludes contrib themes and modules. Includes /custom/ folder if applicable.
I also added some other files like text files, other common IDE files, archives and bins and others.
I left in the licenses.
Project files from the default Presta install, like the MakeFile, are not excluded. I deleted them personally.
Please remember to replace the admin folder name.
# Edited copy of the prestashop gitignore from github.
# It should not ignore folders which are needed even though they contain generated files.
# It should be deployable.
# Cache, temp and personal files
/.htaccess
/.htpasswd
*.log
npm-debug.log.*
.sass-cache/
*.swp
*.swo
*.zip
.DS_Store
*.bak
.cache/
.vscode
XMLFeed.cache
# Cache
/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/*
!/download/.htaccess
!/download/index.php
# Default imports
docs/csv_import/*
!docs/csv_import/.htaccess
!docs/csv_import/index.php
# Upload
/upload/*
!/upload/index.php
!/upload/.htaccess
/admin405ht9jfqoqlbmxriza/autoupgrade/*
!/admin405ht9jfqoqlbmxriza/autoupgrade/index.php
!/admin405ht9jfqoqlbmxriza/autoupgrade/backup/index.php
/admin405ht9jfqoqlbmxriza/backups/*
!/admin405ht9jfqoqlbmxriza/backups/.htaccess
/admin405ht9jfqoqlbmxriza/import/*
!/admin405ht9jfqoqlbmxriza/import/.htaccess
!/admin405ht9jfqoqlbmxriza/import/index.php
/admin405ht9jfqoqlbmxriza/export/*
!/admin405ht9jfqoqlbmxriza/export/.htaccess
!/admin405ht9jfqoqlbmxriza/export/index.php
# Downloaded RTL files
/admin405ht9jfqoqlbmxriza/themes/default/css/bundle/default_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/bundle/shared_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/font_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/overrides_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/vendor/font-awesome/font-awesome_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/vendor/nv.d3_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/css/vendor/titatoggle-min_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/public/theme_rtl.css
/admin405ht9jfqoqlbmxriza/themes/default/public/*
/admin405ht9jfqoqlbmxriza/themes/new-theme/css/module/drop_rtl.css
/admin405ht9jfqoqlbmxriza/themes/new-theme/css/right-sidebar_rtl.css
/admin405ht9jfqoqlbmxriza/themes/new-theme/public/*
!/admin405ht9jfqoqlbmxriza/themes/new-theme/public/theme.rtlfix
!/admin405ht9jfqoqlbmxriza/themes/default/public/theme.rtlfix
themes/*/cache/*
themes/core.js.map
themes/core.js
themes/*-chunk.js
themes/*-chunk.js.map
!themes/custom/*
# TO ADD MULTISITE THEMES TO EXCLUSION HERE IF NECESSARY
# Config
config/defines_custom.inc.php
config/settings.inc.php
config/settings.old.php
/config/settings_bak.php
/config/settings*.old.php
/config/xml/*
/config/env/*
/config/*.env
config/themes/*
!config/xml/themes/default.xml
themes/*/config/settings_*.json
app/config/parameters.old.yml
app/config/config.php
# MISC
/robots.txt
*CHANGELOG.txt
Install_PrestaShop.html
# Symfony
/.web-server-pid
/app/config/parameters.yml
/app/config/parameters.php
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/CACHEDIR.TAG
!/var/logs
/var/logs/*
!/var/sessions
/var/sessions/*
!var/SymfonyRequirements.php
!var/class_stub.php
!/var/modules
/var/modules/*
/web/bundles/
# Docker configuration
install.lock
docker-compose.override.yml
# Dev
\.idea
\.vscode
\.php-cs-fixer.dist.php
\.php-cs-fixer.php
phpstan.neon.dist
Makefile
# General gitkeep
!*\.gitkeep