gmc
Worktree

Switch

Interactively switch to another worktree.

gmc wt switch opens an interactive picker for sibling worktrees.

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