Skip to content

Instantly share code, notes, and snippets.

@akmur
Forked from salcode/.gitignore
Last active August 29, 2015 14:08
Show Gist options
  • Save akmur/78b26ef8fc2171982ca9 to your computer and use it in GitHub Desktop.
Save akmur/78b26ef8fc2171982ca9 to your computer and use it in GitHub Desktop.
# -----------------------------------------------------------------
# .gitignore for WordPress
# -----------------------------------------------------------------
# ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# ignore all files starting with .
.*
# track this file .gitignore (i.e. do NOT ignore it)
!.gitignore
# track .editorconfig file (i.e. do NOT ignore it)
!.editorconfig
# track readme.md in the root (i.e. do NOT ignore it)
!readme.md
# ignore all files that start with ~
~*
# ignore OS generated files
ehthumbs.db
Thumbs.db
# ignore Editor files
*.sublime-project
*.sublime-workspace
*.komodoproject
# ignore log files and databases
*.log
*.sql
*.sqlite
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# ignore everything in the "wp-content" directory, except:
# "mu-plugins" directory
# "plugins" directory
# "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ADVANCED OPTION (disabled by default)
# ignore everything in the "plugins" directory,
# except the plugins you specify
#wp-content/plugins/*
#!wp-content/plugins/stop-emails/
# ADVANCED OPTION (disabled by default)
# ignore everything in the "themes" directory,
# except the themes you specify
#wp-content/themes/*
#!wp-content/themes/bootstrap-genesis/
# ignore specific themes
wp-content/themes/twentyten/
wp-content/themes/twentyeleven/
wp-content/themes/twentytwelve/
wp-content/themes/twentythirteen/
wp-content/themes/twentyfourteen/
# ignore node/grunt dependency directories
node_modules/
# sass cache folder
**/.sass-cache
**/.sass-cache/*
**/bourbon
**/bourbon/*
**/neat/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment