Skip to content

Instantly share code, notes, and snippets.

@keithgreer
Created April 3, 2019 10:59
Show Gist options
  • Save keithgreer/097b46ee050c615dea91c9804b59daa9 to your computer and use it in GitHub Desktop.
Save keithgreer/097b46ee050c615dea91c9804b59daa9 to your computer and use it in GitHub Desktop.
Magento 1 .gitignore file
# Various IDE & OS files that should never be committed
.DS_Store
*.swp
*.lock
__MACOSX
.idea
/nbproject/*
.project
.buildpath
.thumbs
Thumbs.db
build.properties
.project
.settings
.buildpath
/_notes/*
# Never save database creditentials in your repo. Keep a dummy copy with a different name eg "local.xml.dev"
app/etc/local.xml
# Downloader
downloader/*
# All of the var folders can be excluded.
var/*
!var/.htaccess
# Remove generated files
includes/*
!includes/.htaccess
# Don't include media
media/*
# Composer
composer/*
# Generated
generated/*
# Includes
includes/*
# Explicitly mark as "do not exclude/ignore these from GIT repository"
!/app/.htaccess
!/downloader/.htaccess
!/downloader/template/.htaccess
!/errors/.htaccess
!/includes/.htaccess
!/lib/.htaccess
!/media/.htaccess
!/media/mgt_developertoolbar/*
!/media/customer/.htaccess
!/media/downloadable/.htaccess
!/pkginfo/.htaccess
!/var/.htaccess
!var/package/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment