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 .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
Comments URL: [https://news.ycombinator.com/item?id=48685730](https://news.ycombinator.com/item?id=48685730)
Points: 2