Skip to content

Instantly share code, notes, and snippets.

@bavington
Last active December 30, 2016 03:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bavington/81f549220d316e6fef50 to your computer and use it in GitHub Desktop.
Save bavington/81f549220d316e6fef50 to your computer and use it in GitHub Desktop.
Standard Boilerplate Git Ignore file for a WordPress site
####################################
## Ignore everything except theme ##
####################################
/*
### But don't ignore wp-content
!wp-content/
### But ignore everything inside it
wp-content/*
### Instead of themes
!wp-content/themes/
### But ignore all the themes inside it
wp-content/themes/*
### Instead of my theme
!wp-content/themes/custom-heat/
##############################
## Don't ignore these files ##
##############################
!.gitignore
!.editorconfig
!README.md
#!.htaccess
!robots.txt
!gulpfile.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment