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
Preconfigured with CMake/
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
12 rules•1 template
### 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-* 21 lines•UTF-8•LF
Deterministic
Raw CMake .gitignore
Crawlable upstream source templatecmake.gitignore•20 lines•UTF-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
Execution Caches & Runtime Logs
Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.
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.