Created
July 11, 2014 09:15
-
-
Save katpadi/0ab8fd64d2ebcacd2a37 to your computer and use it in GitHub Desktop.
WordPress Development Typical .gitignore Setup
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
# WordPress Deployment Typical .gitignore Setup | |
# Lesson Learned: You don't want WordPress core files in your repository! | |
# I usually use this inside "wp-content" | |
# Ignore everything in the "wp-content" directory, except the .gitignore | |
/* | |
!.gitignore | |
# Ignore everything in the "wp-content" directory, except the "themes" directory | |
# Then do NOT ignore some-theme-you-want-to-ignore | |
themes/* | |
!themes/some-theme-you-want-to-ignore | |
# Ignore everything in the "wp-content" directory, except the "plugin" directory | |
# Then do NOT ignore the custom-plugin-1, 2 and 3 | |
!plugins | |
plugins/* | |
!plugins/custom-plugin-1 | |
!plugins/custom-plugin-2 | |
!plugins/custom-plugin-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment