Skip to content

Instantly share code, notes, and snippets.

@ryanscherler
Last active August 4, 2016 19:04
Show Gist options
  • Save ryanscherler/5d47484969132277235a6427f6f6b74e to your computer and use it in GitHub Desktop.
Save ryanscherler/5d47484969132277235a6427f6f6b74e to your computer and use it in GitHub Desktop.
Wordpress gitignore
# 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