barrettj12 / jit

The superior way to use Git.
0 stars 0 forks source link

Better error message for `jit new` when branch doesn't exist #30

Closed barrettj12 closed 2 months ago

barrettj12 commented 2 months ago

jit new should provide a clearer error message when a branch doesn't exist.

$ jit new main
creating new worktree based on existing local branch "main"
Error: failed to create new branch: couldn't create worktree for branch "main": fatal: invalid reference: main

exit status 128