Last active
December 30, 2016 03:44
-
-
Save bavington/81f549220d316e6fef50 to your computer and use it in GitHub Desktop.
Standard Boilerplate Git Ignore file for a WordPress site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################### | |
## 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