How do I create a worktree from an existing remote branch? #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to check out a remote branch into a worktree.
But, really, it looks like this is the best option:
I don't have a good source on the solution that worked best for me (.e.g.
--checkout). However, if all I want to do is to be inmain, and then checkout a branch that a coworker/collaborator has created into a new worktree, then the--checkoutform is best.https://stackoverflow.com/a/45491767