C++ .gitignore Template
C++ compiled binaries, build artifacts, debug symbols, and intermediate files. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full GeneratorC++ compiled binaries, build artifacts, debug symbols, and intermediate files
### C++ #### Prerequisites*.d # Compiled Object files*.slo*.lo*.o*.obj # Precompiled Headers*.gch*.pch # Linker files*.ilk # Debugger Files*.pdb # Compiled Dynamic libraries*.so*.dylib*.dll*.so.* # Fortran module files*.mod*.smod # Compiled Static libraries*.lai*.la*.a*.lib # Executables*.exe*.out*.app # Build directoriesbuild/Build/build-*/ # CMake generated filesCMakeFiles/CMakeCache.txtcmake_install.cmakeMakefileinstall_manifest.txtcompile_commands.json # Temporary files*.tmp*.log*.bak*.swp # vcpkgvcpkg_installed/ # debug information files*.dwo # test output & cacheTesting/.cache/ Raw C++ .gitignore
Crawlable upstream source template# Prerequisites*.d # Compiled Object files*.slo*.lo*.o*.obj # Precompiled Headers*.gch*.pch # Linker files*.ilk # Debugger Files*.pdb # Compiled Dynamic libraries*.so*.dylib*.dll*.so.* # Fortran module files*.mod*.smod # Compiled Static libraries*.lai*.la*.a*.lib # Executables*.exe*.out*.app # Build directoriesbuild/Build/build-*/ # CMake generated filesCMakeFiles/CMakeCache.txtcmake_install.cmakeMakefileinstall_manifest.txtcompile_commands.json # Temporary files*.tmp*.log*.bak*.swp # vcpkgvcpkg_installed/ # debug information files*.dwo # test output & cacheTesting/.cache/ Key Pattern Breakdown
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
System & Editor Files
Filters out operating system metadata and workstation-specific editor configuration folders.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.