docs(sync): update skill doc to reflect git add -A and Phase 5b commands sync
This commit is contained in:
@@ -4,11 +4,11 @@ Sync the ClaudeTools and vault repos with Gitea.
|
|||||||
|
|
||||||
Invokes `bash .claude/scripts/sync.sh`, which:
|
Invokes `bash .claude/scripts/sync.sh`, which:
|
||||||
|
|
||||||
1. Stages tracked local changes **by name** (never `git add -A` — avoids picking up `.env`, generated files, etc.)
|
1. Detects local changes (including untracked-only files) via `git status --porcelain`; stages with `git add -A` and auto-commits with `sync: auto-sync from <hostname> at <timestamp>`
|
||||||
2. Auto-commits any local changes with `sync: auto-sync from <hostname> at <timestamp>`
|
2. Fetches from origin, rebases local commits onto remote
|
||||||
3. Fetches from origin, rebases local commits onto remote
|
3. Pushes to origin
|
||||||
4. Pushes to origin
|
4. Copies `.claude/commands/*.md` → `~/.claude/commands/` so the global Claude CLI commands stay current without a manual copy
|
||||||
5. Repeats 1-4 for the **vault** repo (path read from `.claude/identity.json` `vault_path` field)
|
5. Repeats steps 1-3 for the **vault** repo (path read from `.claude/identity.json` `vault_path` field)
|
||||||
6. Surfaces any `## Note for <user>` / `## Message for <user>` blocks from incoming session logs
|
6. Surfaces any `## Note for <user>` / `## Message for <user>` blocks from incoming session logs
|
||||||
|
|
||||||
The script is the single source of truth for git operations. Both `/sync` and `/save` invoke it.
|
The script is the single source of truth for git operations. Both `/sync` and `/save` invoke it.
|
||||||
|
|||||||
Reference in New Issue
Block a user