docs: supervisor owns merge-conflict rebases

This commit is contained in:
openhands 2026-03-13 06:37:35 +00:00
parent 2778fa4ea5
commit 2262fcaab1

View file

@ -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