32 ms·
Offtopic (I think), but I just learned that "For instance, git worktree add -d <path> creates a new working tree with a detached HEAD at the same commit as the
by hiq 6y ago
Offtopic (I think), but I just learned that "For instance, git worktree add -d <path> creates a new working tree with a detached HEAD at the same commit as the current branch." (from the manpage).
It's offtopic because the second worktree has a detached HEAD, so that doesn't help in the case you mention.