Re: [PATCH] Documentation/git-worktree: use working tree for trees on the file system
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2017, 18:12 UTC
- Message-ID
- <xmqqbmsvx1ey.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAGZ79kayeSxFTJr3Q1atFgOyR74PzQyCLiejuZxh7+wTGGb=ww@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> While it may be true that you can have bare worktrees; I would question > why anyone wants to do this, as the only thing it provides is an > additional HEAD (plus its reflog).
A more plausible situation is you start with a bare one as the primary and used to make local clones to do your work in the world before "git worktree". It would be a natural extension to your workflow to instead create worktrees of of that bare one as the primary worktree with secondaries with working trees.