Skip to content

Conversation

@sayful1411
Copy link

Summary

  • Adds a comprehensive .gitignore file to the theme boilerplate
  • Prevents users from accidentally committing unnecessary files to version control

What's included

This .gitignore file covers:

  • WordPress-specific files (uploads, cache, backups)
  • Dependencies (node_modules, vendor, bower_components)
  • Build artifacts and source maps
  • IDE/editor configuration files (VSCode, PhpStorm, Sublime, Vim)
  • OS-specific files (.DS_Store, Thumbs.db)
  • Environment files and logs
  • Temporary and build directories

Why this change?

When users generate a theme from Underscores and start version controlling it, they should have sensible defaults for
what to ignore. This ensures cleaner repositories and prevents common mistakes like committing node_modules or IDE
settings.

This adds a comprehensive .gitignore file to prevent users from
accidentally committing unnecessary files to version control:

- WordPress uploads, cache, and backup directories
- Dependencies (node_modules, vendor, bower_components)
- Build artifacts and source maps
- IDE/editor configuration files
- OS-specific files (.DS_Store, Thumbs.db)
- Environment files and logs
- Temporary and build directories

This ensures a cleaner repository for users generating themes
from the Underscores starter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant