Skip to content

Instantly share code, notes, and snippets.

@ryanscherler
Last active December 14, 2015 17:09
Show Gist options
  • Save ryanscherler/5120024 to your computer and use it in GitHub Desktop.
Save ryanscherler/5120024 to your computer and use it in GitHub Desktop.
This is a template .gitignore file for git-managed WordPress projects. It ignores everything in the root except the theme you're working on.
# This is a template .gitignore file for git-managed WordPress projects.
# Ignores everything in the root except the theme you're working on.
/*
/*/
!/_tpl/
!/wordpress/
/wordpress/*
!/wordpress/wp-content
/wordpress/wp-content/*
/wordpress/wp-content/plugins
/wordpress/wp-content/themes/*
!/wordpress/wp-content/themes/customtheme
*.DS_Store
*.gitignore
# *.less
# *.sql
@ryanscherler
Copy link
Author

This took WAY too long to figure out...

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