Skip to content

Conversation

@moezgwall
Copy link

@moezgwall moezgwall commented Nov 4, 2025

Reasons for making this change

The existing C++ .gitignore template does not fully cover common build artifacts generated by modern C++ toolchains and build systems.
This change improves developer experience and prevents committing temporary or environment-specific files by adding:

  • Linker and debugger artifacts (*.ilk, *.pdb, *.dwo)
  • CMake-generated files (CMakeFiles/, CMakeCache.txt, etc.)
  • Build directories (build/, build-*/)
  • vcpkg package manager folder (vcpkg_installed/)
  • Temporary and cache files (*.tmp, *.log, .cache/, etc.)

These updates make the template more robust across platforms (Windows, Linux, macOS) while keeping it general-purpose.


Links to documentation supporting these rule changes


If this is a new template

Not applicable — this PR updates the existing C++ template.


Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

@moezgwall moezgwall requested a review from a team as a code owner November 4, 2025 00:17
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