Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cfxd
Created February 22, 2016 16:31
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 cfxd/0b28bb43a1719e8e43c2 to your computer and use it in GitHub Desktop.
Save cfxd/0b28bb43a1719e8e43c2 to your computer and use it in GitHub Desktop.
GIT ignore for WP setup
**/node_modules
**/node_modules/**
.DS_Store
config.codekit
*.log
.htaccess
# Ignore everything in the root except the "wp-content" directory.
/*
!wp-content/
# Ignore everything in the "wp-content" directory, except the "plugins"
# and "themes" directories.
wp-content/*
!wp-content/plugins/
!wp-content/themes/
# Ignore everything in the "plugins" directory, except the plugins you
# specify (see the commented-out examples for hints on how to do this.)
wp-content/plugins/*
#!wp-content/plugins/advanced-custom-fields-pro/
#!wp-content/plugins/wp-migrate-db-pro/
#!wp-content/plugins/wp-migrate-db-pro-multisite-tools/
#!wp-content/plugins/wp-migrate-db-pro-media-files/
# Ignore everything in the "themes" directory, except the themes you
# specify (see the commented-out example for a hint on how to do this.)
wp-content/themes/*
!wp-content/themes/THEME/
# ignore all files starting with .
.*
# 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
*.log
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.iso
*.jar
*.rar
*.tar
# ignore node/grunt dependency directories
node_modules/
# sass cache folder and bourbon/neat
**/.sass-cache
**/.sass-cache/*
**.sass-cache**
*.map
!.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment