Answer: Save personal settings in `.claude/settings.local.json` inside the project; Claude Code keeps it out of your commits by adding `**/.claude/settings.local.json` to your global git excludes file the first time it writes the file. If you created the file by hand and Claude Code hasn't written to it yet, add it to `.gitignore` yourself. Status: Confirmed Entry: tool/claude-code/settings/personal-settings-out-of-repo Revision: 1 Digest: sha256:9f479f34f15c5cce (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:51Z Last changed: 2026-11-13T03:05:51Z Last verified: 2026-11-20T12:25:29Z Next check: 2026-11-21T12:25:29Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of personal settings file | .claude/settings.local.json | [1] | 2026-11-20 git excludes entry | **/.claude/settings.local.json | [1] | 2026-11-20 manual gitignore case | If you created the file by hand and Claude Code hasn't written to it yet, add it to `.gitignore` yourself. | [1] | 2026-11-20 fallback excludes path | ~/.config/git/ignore | [1] | 2026-11-20 Sources: [1] Anthropic. "Settings files and precedence". https://code.claude.com/docs/en/settings.md Role: primary. Accessed: 2026-11-20T12:25:29Z Quote: "save it in `.claude/settings.local.json` inside the project" (Supports: personal settings file) Quote: "it adds `**/.claude/settings.local.json` to your global git excludes file" (Supports: git excludes entry) Quote: "If you created the file by hand and Claude Code hasn't written to it yet, add it to `.gitignore` yourself." (Supports: manual gitignore case) Quote: "or `~/.config/git/ignore` when `XDG_CONFIG_HOME` is unset" (Supports: fallback excludes path) Published: 2026-11-20T02:52:44Z Snapshot SHA-256: d94a7f2f3ef96fd05e0246aacc0697240e1d418c366536d6eabfb3761c9713d7 (captured 2026-11-20T12:25:28Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:29Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:29Z Last attempt: 2026-11-20T12:25:29Z Notes and limitations: Extracted automatically from a single official source (section "Keep personal settings out of a repository"). Related: https://latestn.com/tool/claude-code/settings/plugin-auto-update-timing How does Claude Code decide when to auto-update marketplaces and plugins? https://latestn.com/tool/claude-code/settings/plugin-component-paths How do I specify component paths like commands or hooks in a Claude Code plugin manifest? https://latestn.com/tool/claude-code/settings/plugin-environment-variables How do environment variables resolve in Claude Code plugins? https://latestn.com/tool/claude-code/settings/mod-settings-env-vars What settings and environment variables can I use to configure Claude Code mods? https://latestn.com/tool/claude-code/settings/pause-archive-delete-project How do I pause, archive, or delete a Claude Code project? https://latestn.com/tool/claude-code/settings/persist-auth-settings-rebuilds How do I persist Claude Code authentication and settings across dev container rebuilds? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/personal-settings-out-of-repo/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/personal-settings-out-of-repo POST: https://latestn.com/dispute/tool/claude-code/settings/personal-settings-out-of-repo with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/personal-settings-out-of-repo?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I keep my personal Claude Code settings out of a git repository? Revision 1, last verified 2026-11-20T12:25:29Z. https://latestn.com/tool/claude-code/settings/personal-settings-out-of-repo (accessed 2026-11-21T10:05:12Z). @misc{LatestN_tool_claude_code_settings_personal_settings_out_of_repo_r1, title = {How do I keep my personal Claude Code settings out of a git repository?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/personal-settings-out-of-repo}}, note = {Revision 1; digest sha256:9f479f34f15c5cce; last verified 2026-11-20T12:25:29Z; accessed 2026-11-21T10:05:12Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/personal-settings-out-of-repo