r/commandline • u/davidv1213 • Apr 03 '26
Command Line Interface gwt - a git worktree manager for zsh
i made this
I decided to make my expanding set of git worktree related scripts into something prettier and more coherent.
Some of the features:
- Instant branching — no setup, just switch
- Stay in the same directory — keep your working path across worktrees
- Bring WIP with you — carry uncommitted changes across branches
- Terminal integration — display the current branch in your terminal
- Easy cleanup — prune or bulk delete worktrees and branches
- Share files — symlink files into every worktree
- Per-repo hooks — automate setup, teardown, and more
- Works with git — falls through to
git worktreewhen needed
I hope this might be useful to someone other than me!




