Re: [PATCH 2/2] doc: git-worktree: Add side by side branch checkout example
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 2, 2025, 18:47 UTC
- Message-ID
- <xmqq3481w37x.fsf@gitster.g>
- In-Reply-To
- <dd4027d1-4148-4171-bf17-b5c33881a446@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 6 quoted lines
> 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 ;-).