Refactor Claude Code settings to use template pattern
- Create .claude/settings.json as project-wide template - Untrack .claude/settings.local.json for local overrides - Add .claude/settings.local.json to .gitignore - Add .claude/README.md documenting the setup This allows: - Project defaults versioned in git - Local customization without conflicts - Clean separation of shared vs personal settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
21
.claude/README.md
Normal file
21
.claude/README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Claude Code Settings
|
||||||
|
|
||||||
|
This directory contains configuration for Claude Code.
|
||||||
|
|
||||||
|
## Files
|
||||||
|
|
||||||
|
- **settings.json**: Project-wide default settings (tracked in git)
|
||||||
|
- **settings.local.json**: Local user-specific overrides (not tracked in git)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
The `settings.json` file contains the default configuration that applies to all developers/devices. If you need to customize settings for your local environment, create a `settings.local.json` file which will override the defaults.
|
||||||
|
|
||||||
|
### Example: Create local overrides
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp .claude/settings.json .claude/settings.local.json
|
||||||
|
# Edit settings.local.json with your preferences
|
||||||
|
```
|
||||||
|
|
||||||
|
Your local changes will not be committed to git.
|
||||||
@@ -4,5 +4,6 @@
|
|||||||
"Bash(python3:*)"
|
"Bash(python3:*)"
|
||||||
],
|
],
|
||||||
"deny": []
|
"deny": []
|
||||||
}
|
},
|
||||||
|
"enableAllProjectMcpServers": false
|
||||||
}
|
}
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -17,3 +17,6 @@ sqlite/*.db
|
|||||||
sqlite/*.sql
|
sqlite/*.sql
|
||||||
|
|
||||||
tests/
|
tests/
|
||||||
|
|
||||||
|
# Claude Code local settings
|
||||||
|
.claude/settings.local.json
|
||||||
Reference in New Issue
Block a user