gitignore
A Git ignore-rule file used to specify file paths that are excluded from version control, preventing accidental commits of local configuration, dependency directories and secret key files.
Core Facts
Timeline (last 90 days)
Claude Code's built-in protection only adds this configuration file to the user's computer-wide global gitignore and does not write it to the repository-level .gitignore.
Any credentials that have passed through a chat should be treated as compromised and must be rotated, and agents should read credentials from local files ignored by .gitignore rather than printing them.
Git provides three ignore files: the project-level .gitignore, the global core.excludesFile, and the local .git/info/exclude
All Facts (3)
Git provides three ignore files: the project-level .gitignore, the global core.excludesFile, and the local .git/info/exclude
70%UnverifiedAny credentials that have passed through a chat should be treated as compromised and must be rotated, and agents should read credentials from local files ignored by .gitignore rather than printing them.
60%UnverifiedClaude Code's built-in protection only adds this configuration file to the user's computer-wide global gitignore and does not write it to the repository-level .gitignore.
50%