Last active
August 22, 2016 20:39
-
-
Save keeganbrown/405eca77e8af76706ea192f59c984837 to your computer and use it in GitHub Desktop.
Sample wordpress gitignore
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
# INVERTED STYLE GITIGNORE -- ALL FILES/FOLDERS ARE IGNORED UNLESS SPECIFIED. | |
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
!resources/ | |
!favicon.ico | |
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | |
wp-content/* | |
!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/Custom-Meta-Boxes | |
# Ignore everything in the "themes" directory, except the themes you specify | |
wp-content/themes/* | |
!wp-content/themes/[your theme here]/ | |
# LET'S ADD A TRACKABLE MEDIA FOLDER TO REDUCE THE MADNESS | |
wp-content/uploads/* | |
!wp-content/uploads/site-build | |
#DEV STUFF! | |
!vagrant | |
*/error_log.txt | |
*.DS_Store | |
*.svn-base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment