gmc
Worktree

Switch

Interactively switch to another worktree.

gmc wt switch opens an interactive picker for worktrees. Names match gmc wt ls. Global worktrees use short directory names. If a short name is ambiguous, the picker shows the absolute path.

Usage

gmc wt switch

Shell integration

For the command to change your shell directory, load the shell integration first:

eval "$(gmc wt init zsh)"

Use bash or fish instead of zsh for those shells.

Notes

Without shell integration, a child process cannot permanently change the parent shell directory.

On this page