Skip to content

Instantly share code, notes, and snippets.

@katpadi
Created July 11, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katpadi/0ab8fd64d2ebcacd2a37 to your computer and use it in GitHub Desktop.
Save katpadi/0ab8fd64d2ebcacd2a37 to your computer and use it in GitHub Desktop.
WordPress Development Typical .gitignore Setup
# 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