Skip to content

Instantly share code, notes, and snippets.

@joostvanveen
Last active January 6, 2017 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostvanveen/1d8d8b56db551c3c16b0130f2c552fd8 to your computer and use it in GitHub Desktop.
Save joostvanveen/1d8d8b56db551c3c16b0130f2c552fd8 to your computer and use it in GitHub Desktop.
Magento .gitignore - ignore all user generated files in /media, /var contents and RELEASE_NOTES.txt
############ Project specific rules ###############
# Exclude local.xml
data/web/public/app/etc/local.xml
# Ignore media, except .htaccess (Deny from all) and system files
data/web/public/media/*
!data/web/public/media/.htaccess
!data/web/public/media/customer
data/web/public/media/customer/*
!data/web/public/media/customer/.htaccess
!data/web/public/media/dhl
!data/web/public/media/downloadable
data/web/public/media/downloadable/*
!data/web/public/media/downloadable/.htaccess
!data/web/public/media/xmlconnect
# Ignore media, except .htaccess (Deny from all) and system files
data/web/public/var/*
!data/web/public/var/.htaccess
!data/web/public/var/package
# Ignore release notes, we do not need to broadcast the current version to the world
# Leave in dummy files like .htaccess.sample because some patches will not work if they are not present :(
data/web/public/RELEASE_NOTES.txt
################# Global rules ####################
## Never ignore .gitignore
!.gitignore
## Dependencies
node_modules
bower_components
vendor
.vagrant
*.swp
*.swo
/local.yml
## Sass
.sass-cache
## IDE project files
/.idea
.viminfo
/.buildpath
/.settings
/.project
/.cache
/build
/nbbuild
/nbdist
/nbproject/private
## OS specific files
.DS_Store
.DS_Store?
Thumbs.db
.log
.sass-cache/
.codekit-config.json
._*
.Spotlight-V100
.Trashes
ehthumbs.db
*.swp
## Zipped files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Always Version .keep and .gitkeep files
!.keep
!.gitkeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment