Last active
April 22, 2022 00:06
-
-
Save ashsmith/3175576 to your computer and use it in GitHub Desktop.
Magento 1.x .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Never save database creditentials in your repo. Keep a dummy copy with a different name eg "local.xml.dev" | |
app/etc/local.xml | |
downloader | |
# If you'd like to keep the downloader, use the following instead: | |
# downloader/.cache | |
# downloader/cache.cfg | |
# downloader/connect.cfg | |
# All of the var folders can be excluded. | |
var/* | |
!var/.htaccess | |
# Remove generated files | |
includes/* | |
!includes/.htaccess | |
media/* | |
# If you'd like to commit media files, replace the above with the following: | |
# media/catalog/product/cache | |
# media/css | |
# media/css_secure | |
# media/js | |
# media/js_secure | |
# I use a global gitignore file for the following, but worth noting these: | |
.DS_Store | |
.phpstorm.meta.php | |
.idea/ | |
.modman | |
# Don't commit composer dependencies: | |
composer/ |
Thanks for putting this out!
Was wondering exactly what to ignore, as we like to have a complete working Magento installation in the repo as well.
Tried this with Magento 1.9.x and still seems it's wanting me to go through Magento install when I open.
Updated, as it hasn't been touched since July 2012. Thanks for the suggestions everyone. Keep 'em coming.
What about ignoring maintenance.flag?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about includes/src ? This directory is generated when you enable magento compilation.