Thread (1 message) 1 message, 1 author, 2025-10-02

Re: [PATCH 2/2] doc: git-worktree: Add side by side branch checkout example

From: Junio C Hamano <hidden>
Date: 2025-10-02 18:47:19

"Kristoffer Haugsbakk" [off-list ref] writes:
This works for me.  But why not this?

    git clone --bare <repo> some-repository
    cd some-repository
    git worktree add some-branch
    git worktree add another-branch
Do you mean "some-repository/config" is the local configuration
file, next to it there are "some-branch" and "another-branch"
directories, and you have to have some way to tell that, among
direct subdirectories of "some-repository/", "some-branch/" is a
worktree while refs/ is not?

No thanks ;-).


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help