Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    isn't git worktree add effectively does a checkout? but you don't need to clone the repo. Commented Aug 9, 2020 at 10:44
  • I guess it depends on what you mean by a checkout... It does load the branch history, but that's unavoidable for the general case AFAIK. It does not replace the existing checkout/branch, though. The question asked is slightly different than the title, so... Commented Aug 12, 2020 at 22:09