Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This gitignore will ignore anything that isn't in mu-plugins, plugins, and themes directories of your wp-content directory.
# Ignore everything in the root except the "wp-content" directory.
/*
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except the "mu-plugins", "plugins", and "themes" directories.
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# Ignore Strattic-specific files.
wp-content/mu-plugins/strattic.php
wp-content/mu-plugins/ludicrousdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment