Re: working directory status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 18.11.19 um 05:32 schrieb Sivanandan Srilakshmanan:
> Hi Hannes,
> 
> Thank you so very very, very much for your guidance.
> 
> My team and I maintain multiple projects, each with it's own remotely
> hosted git repository.
> 
> 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.
> 
> Clean up the linked working tree when work is complete.
> 
> 
> 
> 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.)

> Based on my requirement would you suggest the best approach would be
> to create git clone for each remote repository?

That is probably easier.

-- Hannes



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux