Skip to content

Instantly share code, notes, and snippets.

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 nuclearpengy/e7355a61d0cb78a78aa7ea6488eae7a4 to your computer and use it in GitHub Desktop.
Save nuclearpengy/e7355a61d0cb78a78aa7ea6488eae7a4 to your computer and use it in GitHub Desktop.
# Sample Git ignore file for tracking child theme changes but ignoring everything else. :)
#
# Written by Nathan Jeffery
# Website: https://nuclearpengy.com
# Ignore Everything
/*
# Don't ignore gitignore
!.gitignore
# Don't ignore the child theme
!wp-content/
wp-content/*
!/wp-content/themes/
/wp-content/themes/*
!wp-content/themes/name-of-your-child-theme/
# Ignore specific file types
.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment