Skip to content

Extend .gitignore for build artifacts across CMake, Visual Studio, QMake, and Conan#9

Merged
kucherenkord-cyber merged 5 commits intomainfrom
copilot/update-gitignore-for-build-files
Jan 15, 2026
Merged

Extend .gitignore for build artifacts across CMake, Visual Studio, QMake, and Conan#9
kucherenkord-cyber merged 5 commits intomainfrom
copilot/update-gitignore-for-build-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 15, 2026

The repository's .gitignore had only 3 basic patterns, allowing build artifacts to pollute the working tree.

Patterns Added

Build systems: CMakeCache.txt, CMakeFiles/, generated .sln/.vcxproj in Build/, .vs/, Makefile.Debug/Release, moc_.cpp, qrc_.cpp, ui_*.h, Conan artifacts

Compiled artifacts: *.o, *.obj, *.so, *.dll, *.lib, *.exe, *.pdb, *.ilk, **/obj/

Development tools: pycache/, .vscode/, .idea/, .DS_Store, Thumbs.db

Scoping to Avoid False Positives

  • Visual Studio projects: Build/**/*.sln not *.sln (preserves 3rdParty sources)
  • Build directories: /Debug/, /Release/ with leading / (preserves 3rdParty//Debug_Qt5_/ prebuilt libs)
  • Makefiles: Makefile.Debug, Makefile.Release not Makefile* (preserves 3rdParty sources)
  • No *.cmake.in, dist/ patterns (preserves 3rdParty templates and node_modules)

Result: 119 new patterns, all build artifacts ignored, all source files preserved.

Original prompt

Расширь файл gitignore чтобы туда не попадали файлы сборок


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 15, 2026 13:09
Co-authored-by: kucherenkord-cyber <250307845+kucherenkord-cyber@users.noreply.github.com>
Co-authored-by: kucherenkord-cyber <250307845+kucherenkord-cyber@users.noreply.github.com>
Co-authored-by: kucherenkord-cyber <250307845+kucherenkord-cyber@users.noreply.github.com>
Co-authored-by: kucherenkord-cyber <250307845+kucherenkord-cyber@users.noreply.github.com>
Copilot AI changed the title [WIP] Update gitignore file to exclude build files Extend .gitignore for build artifacts across CMake, Visual Studio, QMake, and Conan Jan 15, 2026
@kucherenkord-cyber kucherenkord-cyber marked this pull request as ready for review January 15, 2026 13:16
@kucherenkord-cyber kucherenkord-cyber merged commit 89461c6 into main Jan 15, 2026
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.

2 participants