Commit 9c4ed82
docs: add git workflow guidelines to prevent force pushing
When working on PRs, Claude Code was sometimes force pushing to branches.
This adds simple git workflow guidelines emphasizing:
- Check out PR branches properly (fetch, checkout, pull)
- Don't use git push --force unless explicitly requested
Examples of PRs with multiple commits from iterative work:
- #21148: 7 commits including merge commit
- #21150: 9 commits with iterative documentation changes
- #21182: 4 commits with fixes
- Also observed force updates on feat/add-tasks-template-flag branch
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 67024b8 commit 9c4ed82
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
124 | 138 | | |
125 | 139 | | |
126 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
106 | 118 | | |
107 | 119 | | |
108 | 120 | | |
| |||
0 commit comments