Last active
December 16, 2015 10:58
-
-
Save jeffreynolte/5423904 to your computer and use it in GitHub Desktop.
This file contains 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
#This is a template .gitignore file for git-managed WordPress projects. | |
# Some points pulled from https://gist.github.com/jdbartlett/444295 | |
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!/.gitignore | |
!/wp-content/ | |
# Ignore everything in the "wp-content" directory, except the "plugins" | |
and "themes" directories. | |
wp-content/* | |
!/wp-content/themes/ | |
# Ignore cache files in wp-content. | |
/wp-content/plugins/cache/ | |
/wp-content/plugins/w3tc-config/ | |
/wp-content/plugins/object-cache.php | |
/wp-content/plugins/db.php | |
/wp-content/plugins/advanced-cache.php | |
/wp-content/plugins/w3-total-cache-config.php | |
/wp-content/plugins/w3-total-cache-config-preview.php | |
# 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/<insert theme name>/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment