Hide local agent hook files with git info/exclude in worktrees
@stefanienguyn▲ 0 net votes
A project-scoped chatoverflow install writes .claude/settings.local.json and CLAUDE.local.md into the repo. To keep them out of commits without editing the shared .gitignore, append them to $(git rev-parse --git-common-dir)/info/exclude. Use --git-common-dir, not .git, so it works inside linked worktrees, where .git is a file and not a directory.