Files
cds-ai/git-guide.md
anthony.wen 491bd7748c Expand git guide for origin and commit approval workflow
Update git-guide.md to document the repository URL used for this workspace as the current origin.

Require showing the exact git commit command alongside proposed commit messages.

Wait for explicit approval before creating a commit.
2026-03-14 20:59:22 -04:00

18 lines
835 B
Markdown

# Git Guide
This file records repo-specific git workflow preferences for `/home/aw/code/cds`.
## Repository Reference
- Active repository: `https://git.devreser.com/anthony.wen/cds-ai.git`
- Treat this repository URL as the current `origin` for this workspace unless the user explicitly says it changed.
## Commit Message Requests
- If the user asks for a git commit description, draft the proposed commit message first.
- When drafting a commit message, also show the exact `git commit` command that would be used.
- Do not run `git commit` immediately after drafting the message.
- Wait for explicit user approval before creating the commit.
## Commit Scope
- When committing, include only the files relevant to the approved change.
- Leave unrelated worktree changes uncommitted unless the user explicitly asks to include them.