Kinsa | Pixels + Logic Blog

.gitignore file for WordPress Theme Development

A .gitignore file for WordPress Theme Development to place in the top level directory. Utilizes exclusion pattern matching to keep the WordPress core and node_modules/ out of the Git repository while tracking the theme and plugin files.

# Ignore everything
# But descend into directories

# # Recursively allow files under:
# "mu-plugins", "plugins", "themes" directory

# ignore this file

# ignore specific themes

# ignore node dependency directories

# ignore log files and databases

# don't ignore this file


Email us at