Skip to content

Instantly share code, notes, and snippets.

@aramboyajyan
Last active June 27, 2020 15:20
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 aramboyajyan/3733e1178a667c9728a767ce68d56121 to your computer and use it in GitHub Desktop.
Save aramboyajyan/3733e1178a667c9728a767ce68d56121 to your computer and use it in GitHub Desktop.
.gitignore for Drupal 7
# Ignore custom settings.
sites/default/settings.local.php
# phpStorm settings.
/.idea/
# 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
# Avoid accidental modification of pantheon.upstream.yml in sites
# created from this upstream
pantheon.upstream.yml
# Packages #
############
*.7z
*.dmg
*.gz
*.bz2
*.iso
*.jar
*.rar
*.tar
*.zip
*.tgz
# Unnecessary files #
######################
**/*.log
**/*.sql
**/*.sqlite
**/*.mp3
**/*.mp4
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon
Thumbs.db
._*
# Vim generated files #
######################
*.un~
# SASS #
##########
.sass-cache
# Ignore the DS_Store file generated by Finder.
**/.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment