Skip to content

Instantly share code, notes, and snippets.

@cdcarson
Last active August 29, 2015 13:56
Show Gist options
  • Save cdcarson/9026272 to your computer and use it in GitHub Desktop.
Save cdcarson/9026272 to your computer and use it in GitHub Desktop.
#.gitignore
.DS_Store
.idea
vendor
.elasticbeanstalk/
## BEGIN WORDPRESS ##
# ignore everthing...
/wp-content/*
# ...except for the directory index
!/wp-content/index.php
# unignore themes
!/wp-content/themes/
# reignore everything in themes....
/wp-content/themes/*
# ...except for the directory index...
!/wp-content/themes/index.php
# and our starter theme...
!/wp-content/themes/twentythirteen/
# and our app's actual theme...
!/wp-content/themes/myapp/
# unignore plugins
!/wp-content/plugins/
# reignore everthing in plugins...
/wp-content/plugins/*
# ...except for the directory index
!/wp-content/plugins/index.php
# ...and except for our special plugins...
!/wp-content/plugins/special-plugin/
!/wp-content/plugins/extra-special-plugin/
# unignore mu-plugins
!/wp-content/mu-plugins/
# reignore everthing inside mu-plugins...
/wp-content/mu-plugins/*
# ...except for our boot script and the directory index
!/wp-content/mu-plugins/boot.php
!/wp-content/mu-plugins/index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment