Back to browse
GitHub Repository

nt — git worktree quick-switch for zsh, with tab-completion

0 starsShell

NT – fly around Git worktrees from your shell

by Allisonmahmood·Jun 26, 2026·4 points·0 comments

AI Analysis

MidCozyShip It

Yet another git worktree wrapper when git-worktree already exists.

Strengths
  • Tab completion wires up correctly even when oh-my-zsh compinit already ran
  • Worktrees organized in <repo>.worktrees/ sidecar directory keeps things traceable
  • Preserves diverged local commits instead of nuking them on fast-forward
Weaknesses
  • Author admits an AI agent could build this in 10 minutes
  • No Windows support, zsh-only limits the audience significantly
Target Audience

Git power users who work with multiple branches simultaneously

Similar To

git-worktree · git-branchless · thefuck

Post Description

Got tired of fighting git worktrees, so I made nt (navigate tree). One command: nt fix-login spins up (or jumps to) a worktree at <repo>.worktrees/fix-login, cd's you in, done.

Point it at a branch that already exists (local or on origin) and it checks that branch out in a fresh worktree, fast-forwarded to origin, so you're never stuck on some stale local copy (it won't nuke un-pushed commits though).

nt cd / nt rm / nt home to get around, fzf pickers, zsh tab-completion. ~240 lines of zsh, MIT.

Honestly you should just have your agent build this for you, takes 10 min. But if you're too scared to let it touch your dotfiles, here you go

Similar Projects