docs: supervisor owns merge-conflict rebases
This commit is contained in:
parent
2778fa4ea5
commit
2262fcaab1
1 changed files with 14 additions and 0 deletions
|
|
@ -12,6 +12,20 @@
|
||||||
- Reset dirty state: `git checkout -- .` (only uncommitted changes)
|
- Reset dirty state: `git checkout -- .` (only uncommitted changes)
|
||||||
- Fetch latest: `git fetch origin master`
|
- Fetch latest: `git fetch origin master`
|
||||||
|
|
||||||
|
## Auto-fixable by Supervisor
|
||||||
|
- **Merge conflict on approved PR**: rebase onto master and force-push
|
||||||
|
```bash
|
||||||
|
cd /tmp/harb-worktree-<issue> || git worktree add /tmp/harb-worktree-<issue> <branch>
|
||||||
|
cd /tmp/harb-worktree-<issue>
|
||||||
|
git fetch origin master
|
||||||
|
git rebase origin/master
|
||||||
|
# If conflict is trivial (NatSpec, comments): resolve and continue
|
||||||
|
# If conflict is code logic: escalate to Clawy
|
||||||
|
git push origin <branch> --force
|
||||||
|
```
|
||||||
|
- **Stale rebase**: `git rebase --abort && git checkout master`
|
||||||
|
- **Wrong branch**: `git checkout master`
|
||||||
|
|
||||||
## Dangerous (escalate)
|
## Dangerous (escalate)
|
||||||
- `git reset --hard` on any branch with unpushed work
|
- `git reset --hard` on any branch with unpushed work
|
||||||
- Deleting remote branches
|
- Deleting remote branches
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue