Skip to content

Commit 0b12e9a

Browse files
committed
docs(claude): add rule to check branch status before pushing
Add critical rule #11 to verify remote tracking branch exists before pushing. If a PR was merged/deleted, create a new branch from main.
1 parent d44bce8 commit 0b12e9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Guidance for Claude Code when working with the dtvem codebase.
2727
8. **Run validation before commits** - Run `npm run check` (format, lint, test) before committing and pushing
2828
9. **Working an issue** - When working an issue, always create a new branch from an updated main branch
2929
10. **Branch Names** - Always use the conventional commit `type` from the issue title as the first prefix, and the `scope` as the second, then a very short description, example `feat/ci/integration-tests`
30+
11. **Check branch status before pushing** - ALWAYS verify the remote tracking branch still exists before pushing. If a PR was merged/deleted, create a new branch from main instead of trying to push to the old one.
3031
---
3132

3233
## Quick Reference

0 commit comments

Comments
 (0)