thiagowfx's avatar

¬ just serendipity 🍀 (not just serendipity)

.gitignore .claude/settings.local.json

• 41 words • 1 min • updated

⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.

The initial attempt:

~/.gitignore
.claude/settings.local.json

However, it doesn’t work when you run claude code in a subdirectory of your git repository root. git diff still surfaces it.

The correct form is:

diff
-.claude/settings.local.json
+**/.claude/settings.local.json

Add ** to include subdirectories as well.