gmc
Worktree

Sync Base

Refresh the base branch used for worktrees.

gmc wt sync updates the base branch used by worktree commands.

Usage

gmc wt sync

Base branch

gmc wt sync -b main

Preview

gmc wt sync --dry-run

Notes

Run sync before creating new worktrees when you need candidates based on the latest base branch.

On this page