Files
CubicSDR/docs/plans/fix-gitignore.md
T

1.3 KiB

Plan: Fix .gitignore

See also: RECOMMENDATIONS.md | PLAN.md

Current State

.gitignore only covers build/, cmake_build/, dist/. Missing IDE, OS, editor, build artifact, and package patterns.

Implementation Plan

Replace the contents of .gitignore with comprehensive patterns:

# Build directories
build/
cmake_build/
dist/
Testing/

# CMake generated files
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
Makefile
compile_commands.json
_deps/

# IDE files
.vs/
*.suo
*.user
*.sln.docstates
.idea/
.vscode/
*.code-workspace
.project
.cproject
.settings/
.classpath
*.xcworkspace/
*.xcodeproj/
*.swp
*.swo
*~

# OS files
.DS_Store
Thumbs.db
Desktop.ini

# Compiled artifacts
*.o
*.obj
*.a
*.lib
*.so
*.dll
*.dylib
*.exe
*.out
*.app/
*.dSYM/

# MSVC artifacts
*.pdb
*.ilk
*.exp
*.log

# Package artifacts
*.deb
*.rpm
*.dmg
*.nsi

# Misc
.cache/

Verification Criteria

  • After applying, git status shows no untracked IDE/OS/build files in the working tree.
  • git add . does not stage .vs/, .idea/, *.obj, CMakeCache.txt, .DS_Store, or other ignored patterns.
  • Existing tracked files are not affected (no deletions or renames).

Files to Modify

File Action
.gitignore Rewrite