Skip to content

Instantly share code, notes, and snippets.

@flashvnn
Last active August 29, 2015 14:02
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 flashvnn/4ccc8d67511876a3f713 to your computer and use it in GitHub Desktop.
Save flashvnn/4ccc8d67511876a3f713 to your computer and use it in GitHub Desktop.
Git ignore for Drupal
# Ignore paths that contain user-generated content.
/sites/*/files
/sites/*/private
/files/*
/cache
# ** Only works in OSs that support newer versions of fnmatch (Bash 4+)
/sites/default/**/files
/sites/default/**/private
/sites/default/settings.php
# Packages #
############
*.7z
*.dmg
*.gz
*.bz2
*.iso
*.jar
*.rar
*.tar
*.zip
*.tgz
# Logs and databases #
######################
*.log
*.sql
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
._*
# Vim generated files #
######################
*.un~
# SASS #
##########
.sass-cache
.idea
modules/simpletest
tests/
deploy/
/*.sublime-project
/*.sublime-workspace
*.test
*.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment