Last active
January 6, 2017 06:17
-
-
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
This file contains 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
############ 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