Skip to content

Instantly share code, notes, and snippets.

@caschbre
Created February 10, 2013 19:31
Show Gist options
  • Save caschbre/4750738 to your computer and use it in GitHub Desktop.
Save caschbre/4750738 to your computer and use it in GitHub Desktop.
Sample .gitignore file for a Drupal project.
# Sensitive information #
#########################
# Ignore configuration files that may contain sensitive information.
# -- Actually going to allow settings files to be committed to git.
# sites/*/settings*.php
sites/*/settings.local.php
# User Generated Content #
##########################
files
sites/*/files
sites/*/private
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# It's better to unpack these files and commit the raw source, git has its own
# built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
# Sublime Project Files #
#########################
*.sublime-projectcompletions
*.sublime-project
*.sublime-workspace
# Cache Folders and Files #
###########################
sites/all/themes/*/.sass-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment