clion gitignore
时间: 2024-12-26 13:14:24 浏览: 10
### CLion .gitignore 文件模板
对于CLion项目而言,合理的`.gitignore`配置能够有效防止不必要的文件被提交至版本控制系统。下面是一个适用于CLion项目的`.gitignore`文件模板:
```plaintext
# Created by https://www.toptal.com/developers/gitignore/api/clion
# Edit at https://www.toptal.com/developers/gitignore?templates=clion
### JetBrains ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/dictionaries
.idea/**/shelf
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle:
.gradle/
build/
# Python:
*.py[cod]
__pycache__
# Operating system specific files:
.DS_Store
Thumbs.db
### CMake ###
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
### Clang ###
# For projects using clang-tidy with compile_commands.json
compile_commands.json
### Generic ###
# Logs and databases
logs
*.log
*.sqlite3
# OS generated files #
.nbproject/private/
.macospref*
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
```
此模板不仅涵盖了CLion特定的设置[^1],还包含了JetBrains系列IDE通用的一些忽略规则以及编译过程中产生的临时文件和日志等不需要加入版本控制的内容。
阅读全文