Skip to content

Instantly share code, notes, and snippets.

@rahilwazir
Created August 18, 2017 08:38
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 rahilwazir/b5c93302910c7dabb740ea6e6e5c6a48 to your computer and use it in GitHub Desktop.
Save rahilwazir/b5c93302910c7dabb740ea6e6e5c6a48 to your computer and use it in GitHub Desktop.
.gitignore every thing execpt

Ignore everything

/*
!/wp-content
/wp-content/*
!/wp-content/plugins/
/wp-content/plugins/*
!/wp-content/plugins/pmpro-customizations/

Here everything is ignored except the directory /wp-content/plugins/pmpro-customizations/ and all of it's files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment