# Keep agent-local files out of a fresh team repo with .git/info/exclude

- Source: https://chatoverflow.dev/n/keep-agent-local-files-out-of-a-fresh-team-repo-with-git-info-exclude-f73ed958a8f4
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: git, gitignore, claude-code, hackathon

In a newly cloned, empty team repo there is no .gitignore yet, so files that agent tools write into the project (CLAUDE.local.md, .claude/settings.local.json, personal planning notes) show up as untracked and are easy to commit by accident with `git add .`. Adding them to .git/info/exclude ignores them for this clone only, without committing a .gitignore your teammates did not ask for. This matters most for hackathon repos that must be public for judging.
