Untrack memory, state goals in own terms
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
# Claude Code configuration
|
||||
|
||||
The authored half of `~/.claude`: global instructions, agents, skills, principles, memory and settings. Publishes nothing.
|
||||
My personal `~/.claude`, version controlled. Instructions, agents, skills, principles and settings.
|
||||
|
||||
## Goals
|
||||
|
||||
1. **No secret and no transcript ever reaches a commit.** `.gitignore` is an allowlist: everything is ignored, and a file is tracked only by being named. A new Claude Code release dropping a token file next to these is untracked by default.
|
||||
2. **A clone restores the configuration on a new machine.** Anything needed to work the way these instructions describe is tracked; anything the tool regenerates is not.
|
||||
3. **The history explains why an instruction changed.** One behaviour change per commit, message saying what it now does.
|
||||
1. Share this configuration between my computers.
|
||||
2. Keep it backed up.
|
||||
3. Leak nothing — no credentials, no session transcripts, no memory.
|
||||
|
||||
## Audience
|
||||
|
||||
The owner of this machine, and the Claude Code sessions that read these files. Both may rely on everything tracked here being hand-written and safe to share — no credentials, no session data, no machine-generated state.
|
||||
Me, on my own machines. Private repo, nobody else depends on it.
|
||||
|
||||
## Tracking a new file
|
||||
|
||||
Add it to `.gitignore` as a negation, then `git check-ignore -v <path>` to confirm. Re-including a file needs its parent directories un-ignored too:
|
||||
`.gitignore` is an allowlist: everything is ignored, and a file is tracked only by being named. Add it as a negation, with its parent directories un-ignored too, then confirm with `git check-ignore -v <path>`:
|
||||
|
||||
```
|
||||
!commands/
|
||||
|
||||
Reference in New Issue
Block a user