Skip to content

Instantly share code, notes, and snippets.

@timani
Created January 12, 2013 04:24
Show Gist options
  • Save timani/4516079 to your computer and use it in GitHub Desktop.
Save timani/4516079 to your computer and use it in GitHub Desktop.
Default .gitignore file for Pantheon. This should prevent the wp-content/uploads directory from being committed to git. It is important to create the wp-content/uploads and create the symlink.
# 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
# Ignore the Wordpress wp-content/uploads to keep git clean
/wp-content/uploads/*
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment