Repository

allisonmahmood/NT

nt

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

1star

Open github.com

allisonmahmood/NT

nt

nt is a cross-shell command for quickly creating or switching to git worktrees. It spins up a worktree for a branch, cd's you in, and supports tab-completion. Written in Go, MIT license.

Visit project

Show me a random project

First shared
Jun 26, 2026
HN activity
40

Show HN@AllisonmahmoodJun 26, 2026

Show HN: NT – fly around Git worktrees from your shell

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

Community

Hacker News discussion

Loading the thread…