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

Create a branch/tree based on another branch #111

Open
Enigama opened this issue Oct 15, 2023 · 0 comments
Open

Create a branch/tree based on another branch #111

Enigama opened this issue Oct 15, 2023 · 0 comments

Comments

@Enigama
Copy link

Enigama commented Oct 15, 2023

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

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

No branches or pull requests

1 participant