Last active
August 4, 2016 19:04
-
-
Save ryanscherler/5d47484969132277235a6427f6f6b74e to your computer and use it in GitHub Desktop.
Wordpress gitignore
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
# Ignore everything in the root except the "wordpress" directory. | |
/* | |
!.gitignore | |
!wordpress/ | |
# Ignore everything in the "wordpress" directory, except the "wp-content" directory. | |
wordpress/* | |
!wordpress/wp-content/* | |
# Ignore everything in the "wp-content" directory, except the "themes" directory. | |
wordpress/wp-content/* | |
!wordpress/wp-content/themes/* | |
# Ignore everything in the "themes" directory, except the "{{ theme_name }}" directory. | |
wordpress/wp-content/themes/* | |
!wordpress/wp-content/themes/{{ theme_name }}/* | |
wordpress/wp-content/themes/**/*/.*cache | |
wordpress/wp-content/themes/**/*/node_modules | |
wordpress/wp-content/themes/**/*/bower_components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment