Skip to content

Instantly share code, notes, and snippets.

@thiagorock22
Forked from ashsmith/.gitignore
Created April 5, 2018 16:59
Show Gist options
  • Save thiagorock22/bf23ee0f0b90fc0e4bfcb9f831f1c56f to your computer and use it in GitHub Desktop.
Save thiagorock22/bf23ee0f0b90fc0e4bfcb9f831f1c56f to your computer and use it in GitHub Desktop.
Magento 1.x .gitignore
# 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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment