A Tool for Working with Git Worktrees
Git worktrees have received a fair amount of press recently, since Claude Code et al. encourage using them when you're running multiple agents in parallel (to keep them from conflicting with each other).
I've found this useful, but working with Git worktrees directly is somewhat cumbersome. To speed up my common workflows, I'm working on a tool called newt (it stands, roughly, for "new worktree"):
GitHub - cdzombak/newt: Git worktree manager
Git worktree manager. Contribute to cdzombak/newt development by creating an account on GitHub.
newt speeds up these common operations:
- creating a new branch & worktree, and opening it in a shell:
newt -b branch-name - creating a worktree for an existing branch, and opening it in a shell:
newt branch-name - list worktrees, along with the corresponding branch's status:
newt -l - delete a worktree and its branch:
newt -d worktree-name
All worktrees are created inside repo_root/.newt, which newt helpfully excludes from Git for you.
The README covers installation instructions and more! In brief, for macOS, you can try it out with brew install cdzombak/oss/newt.