devops12 active rulesVerified 2026-09-30
CMake .gitignore Template
CMake generated build directories, cache files (CMakeCache.txt), and rules. 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 Generator/
Search for templates
Quick add:
Selected1
CMake
Selected Templates (1)
CMake
devops
CMake generated build directories, cache files (CMakeCache.txt), and rules
#cmake#cmake-build
.gitignore
### CMake ###CMakeLists.txt.userCMakeCache.txtCMakeFilesCMakeScriptsTestingMakefilecmake_install.cmakeinstall_manifest.txtcompile_commands.jsonCTestTestfile.cmake_depsCMakeUserPresets.json # CLion# JetBrains specific template is maintained in a separate JetBrains.gitignore that can# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#cmake-build-* 12 rules1 template21 linesUTF-8LF
Deterministic
Raw CMake .gitignore
Crawlable upstream source templatecmake.gitignore20 linesUTF-8
CMakeLists.txt.userCMakeCache.txtCMakeFilesCMakeScriptsTestingMakefilecmake_install.cmakeinstall_manifest.txtcompile_commands.jsonCTestTestfile.cmake_depsCMakeUserPresets.json # CLion# JetBrains specific template is maintained in a separate JetBrains.gitignore that can# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore# and can be added to the global gitignore or merged into this file. For a more nuclear# option (not recommended) you can uncomment the following to ignore the entire idea folder.#cmake-build-* Key Pattern Breakdown
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
CMakeCache.txt
Source & Verification
Source:: GitHub gitignore (main)
License:: CC0-1.0
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.