Unverified50% confidenceFactExact time
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.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
11/14/2026
First Seen
Valid until: 2/12/2027
Sources
Claude Code或泄露密码:14000份GitHub文件中的密钥风险
Related Entities
Related Claims
UnverifiedClaude Code only adds .claude-settings.local.json to the user's Global Git Excludes and does not add it to the project's own .gitignore, so the file may still be included in version control.77% similarUnverified.git/info/exclude uses exactly the same syntax as .gitignore, but is not committed because the .git directory is not under version control71% similarUnverifiedThe leak path is: after the developer checks "Don't Ask Again", Claude Code gains persistent access to a specific directory or file type; subsequently, files containing passwords are brought under version control and pushed to public GitHub repositories, causing the sensitive information to be fully exposed.69% similarUnverifiedGitHub push protection covers command-line pushes, commits created in the GitHub UI, file uploads, REST API requests, and GitHub MCP server interactions limited to public repositories.68% similarUnverifiedThe global ignore file applies to all Git projects on the machine and is suitable for personal environment artifacts unrelated to the project (such as .DS_Store and editor caches)68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1169233API
curl https://kongchang.com/api/v1/knowledge/claims/1169233MCP
get_claim(id=1169233)