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

Make it possible to select branch to base the new worktree and branch on [feature request]

Open Juksuu opened this issue 4 years ago • 4 comments

I'm not sure if this can already be done somehow, but did not find any information on this.

I have a situation where I would like to make a new worktree and branch based on some other branch. Currently creating new worktree bases it on master/default branch if I'm not mistaken.

Creating new worktree based on other branch can be done in command line with git worktree add -b "name" "path" "branch to base on" where branch to base on could be for example origin/develop. But I would like to see this implemented to the telescope extension.

Juksuu avatar Nov 10 '21 11:11 Juksuu

I'll start working on this. Let's see if I can manage to make a good flow for it

Juksuu avatar Nov 16 '21 16:11 Juksuu

This is exactly what I was looking for! Hey @ThePrimeagen (busy) I've just tested this and it works.

lpanebr avatar Feb 20 '23 20:02 lpanebr

I want it, too. It helps! Please merge it! @ThePrimeagen

meicale avatar Mar 22 '23 02:03 meicale

I was looking for the same thing. Nice. If I understand this correctly, Gitlens Pro solves this as demonstrated in this YouTube Demo of Gitlens Creating Branch and Worktree for it in one step

metzenseifner avatar Oct 25 '23 09:10 metzenseifner