Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Juksuu opened this issue Nov 10, 2021 · 4 comments · May be fixed by #59
Open

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

Juksuu opened this issue Nov 10, 2021 · 4 comments · May be fixed by #59

Comments

@Juksuu
Copy link

Juksuu commented Nov 10, 2021

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
Copy link
Author

Juksuu commented Nov 16, 2021

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

@Juksuu Juksuu linked a pull request Nov 16, 2021 that will close this issue
@lpanebr
Copy link

lpanebr commented Feb 20, 2023

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

@meicale
Copy link

meicale commented Mar 22, 2023

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

@metzenseifner
Copy link

metzenseifner commented Oct 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants