gmc
Worktree

Add Worktree

Create named worktrees with new branches.

gmc wt add creates one or more sibling worktrees.

Usage

gmc wt add feature-login
gmc wt add feat-a feat-b feat-c

Base branch

gmc wt add hotfix-bug123 -b release

Sync first

gmc wt add feature-login --sync

PR shortcut

gmc wt add --pr 1065

Notes

Use clear names. The worktree name normally becomes the branch name.

On this page