Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ignore everything except for the gitignore file and the themes directories. I made this because I tried others that used the ! logic, but they didn't work right for me.
#For wordpress theme dev.
#Ignore everything except for the gitignore file and the themes directories:
*
!.gitignore
!wp-content/
!wp-content/themes/
!wp-content/themes/*/
!wp-content/themes/*/*
!wp-content/themes/*/*/*
!wp-content/themes/*/*/*/*
!wp-content/themes/*/*/*/*/*
!wp-content/themes/*/*/*/*/*/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment