Ignoring OS files (like .DS_Store) in Git inside dev containers
9 hours ago
- #VS Code
- #dev containers
- #gitignore
- VS Code copies .gitconfig but not referenced files like .gitignore_global to dev containers, causing issues with global exclusions.
- Using .git/info/exclude for developer-specific files like .DS_Store is recommended to avoid polluting the project .gitignore.
- This solution works locally in dev containers, is not tracked by Git, persistent across container rebuilds, and applies to any editor, though it requires per-project setup.