From: Eric Sunshine <sunshine@sunshineco.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Sivanandan Srilakshmanan <ssrilaks@gmail.com>,
Pratyush Yadav <me@yadavpratyush.com>,
Git List <git@vger.kernel.org>
Subject: Re: working directory status
Date: Mon, 18 Nov 2019 02:01:28 -0500 [thread overview]
Message-ID: <CAPig+cTBnWyLVLJBpeFhmW3yOmgiCr0YT3aHQFBT=pXWcheRLw@mail.gmail.com> (raw)
In-Reply-To: <31883f6f-7b5a-a2aa-951d-51f9eee6f68d@kdbg.org>
On Mon, Nov 18, 2019 at 1:51 AM Johannes Sixt <j6t@kdbg.org> wrote:
> Am 18.11.19 um 05:32 schrieb Sivanandan Srilakshmanan:
> > I was reluctant to create clones of each project on my local machine
> > each with it's own "main working tree"
> >
> > I figured:-
> >
> > I could setup a "Local bare repository" and create remote link to the
> > hosted git repositories.
> > (https://git-scm.com/docs/git-worktree#_list_output_format)
> >
> > Create "Local branches" when needed. Create a "linked working tree"
> > associated with the local branch.
> >
> > This way I can have a single repository pointing to multiple remote
> > repositories on one side and managing multiple local directories on my
> > PC.
> > In summary, my local repository will be conduit. I guess this is not possible.
>
> I think it is possible. Just don't make it a bare repository if you need
> to create secondary worktrees. (But maybe it even works if it is bare;
> just don't set GIT_DIR; I don't do it this way, so I cannot tell.)
git-worktree explicitly supports the use-case of the main worktree
being bare. (Of course, in this case, it's a misnomer to call it the
"main _worktree_", but the terminology was already established by the
time explicit support for bareness was added, so the term "main
worktree" stuck.)
next prev parent reply other threads:[~2019-11-18 7:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-17 0:55 working directory status Sivanandan Srilakshmanan
2019-11-17 7:29 ` Pratyush Yadav
2019-11-17 11:07 ` Sivanandan Srilakshmanan
2019-11-17 12:30 ` Johannes Sixt
2019-11-17 20:33 ` Sivanandan Srilakshmanan
2019-11-17 22:26 ` Johannes Sixt
2019-11-18 4:32 ` Sivanandan Srilakshmanan
2019-11-18 6:51 ` Johannes Sixt
2019-11-18 7:01 ` Eric Sunshine [this message]
2019-11-18 7:12 ` Junio C Hamano
2019-11-18 10:40 ` Sivanandan Srilakshmanan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPig+cTBnWyLVLJBpeFhmW3yOmgiCr0YT3aHQFBT=pXWcheRLw@mail.gmail.com' \
--to=sunshine@sunshineco.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=me@yadavpratyush.com \
--cc=ssrilaks@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).