Expand description
gw sync command - Sync current branch after base PR merge
When the base PR of your current branch has been merged, this command:
- Updates the PR’s base branch to main via
gh pr edit --base main - Rebases the branch on origin/main
- Force pushes with –force-with-lease
§Example
$ gw status
Branch: feature/child
PR: #42 (open)
Base: feature/base (merged ✓)
Next: gw sync
$ gw sync
Updating base: feature/base → main
Rebasing on origin/main...
Force pushing...
✓ SyncedFunctions§
- run
- Execute the
synccommand