Skip to content

Commit e8bce8c

Browse files
author
Ubuntu
committed
Document stacked PR workflow details in CLAUDE.md
1 parent 7cb0254 commit e8bce8c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.claude/CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ main → PR#55, main → PR#56 (wrong - parallel branches)
1111

1212
Only branch directly from main when explicitly starting independent work.
1313

14+
**When base PR merges:** Your branch's merge-base with main shifts automatically. The delta shown in your PR will only be your commits (base PR's commits are now in main). Merge conflicts can arise if main got other commits touching the same files.
15+
16+
**PR description:** Always note `**Stacked on:** <base-branch> (PR #N)` so reviewers understand the dependency.
17+
1418
## UNDERSTAND BRANCH CHAINS
1519

1620
**Run before starting work, committing, or opening PRs:**
@@ -21,6 +25,8 @@ git log --oneline --graph --all --decorate | head -120
2125

2226
Shows which branch you're on and what it's based on.
2327

28+
**Don't confuse local vs remote:** After rebasing locally, `origin/<branch>` shows the old history until you force-push. They're the same branch at different points in time.
29+
2430
## ALWAYS USE THE MAKEFILE
2531

2632
**Never run raw cargo/podman commands. Use make targets.**

0 commit comments

Comments
 (0)