Skip to content

Commit 81309cc

Browse files
StevenTCramerclaude
andcommitted
Add PR creation command with --head flag to Claude.md
Document the required --head flag when creating PRs from worktrees to prevent the common "must first push" error. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1e23874 commit 81309cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Claude.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1010

1111
### Git Workflow
1212
**Worktree constraints**: Cannot switch/pull/delete branches across worktrees
13+
- Create PRs: `gh pr create --head <branch> --base master --title "..." --body "..."`
1314
- Merge PRs: `gh pr merge <PR#> --merge` (no --delete-branch)
1415
- No squash/rebase commits
1516

0 commit comments

Comments
 (0)