Skip to content

Commit f992e61

Browse files
authored
docs: warn against git stash across branches in CLAUDE.md (#307)
1 parent 6b33fc8 commit f992e61

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ git push origin feature/GHO-XXX-branch-name
3535

3636
**Never use** `mcp__github__push_files` or `mcp__github__create_or_update_file` for commits in this repo — they bypass local git config, produce unsigned commits, and fail with `422/409 Repository rule violations found: Commits must have verified signatures`.
3737

38+
**Never use `git stash` to carry changes across branches.** Auto-merge during `git stash pop` silently drops hunks when branches have diverged, causing changes to disappear without error. Instead, use a temp commit on the current branch, then cherry-pick or reset after switching, or use `git diff > patch.diff` / `git apply patch.diff`.
39+
3840
After pushing, open the PR with `mcp__github__create_pull_request`.
3941

4042
### PR Creation Checklist

0 commit comments

Comments
 (0)