git-worktree.nvim
git-worktree.nvim copied to clipboard
Create a branch/tree based on another branch
I tried to create tree based on non checked out branch it always does wrong thing, either a new tree based on local branch or create tree that I would like to create based on but it's not new branch based on what i wanted.
Basically I would like to have this thing works git worktree add -b emergency-fix ../temp non-checked-branch
while I'm on main.
Test: :lua require("git-worktree").create_worktree("../fix-a-s", "fix-a-s", "origin/along-side")
the along-side branch has 1 additional file(test2.txt)
what I got after run the command(we actually create a tree based on main)
what I expected to get