git-worktree.nvim icon indicating copy to clipboard operation
git-worktree.nvim copied to clipboard

Create a branch/tree based on another branch

Open Enigama opened this issue 1 year ago • 0 comments

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) image what I got after run the command(we actually create a tree based on main) image what I expected to get image

Enigama avatar Oct 15 '23 12:10 Enigama