Re: Multiple checkouts of the same repository
- From
- Matt McCutchen <hashproduct+git@gmail.com>
- Date
- Oct 1, 2006, 19:14 UTC
- Message-ID
- <3bbc18d20610011214y6132d98eq9cd58b23721bb87d@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0610012105590.14200@wbgn013.biozentrum.uni-wuerzburg.de>
On 10/1/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 6 quoted lines
> A better method is to use a local clone: > > git-clone --local --shared A B > > Such a clone will be very fast, and cheap, because it sets up links (not > just symbolic links, but links that git understands).
But that gives me two separate repositories, so I have to push and pull to keep them in sync, which is a pain.
I symlinked only the top-level things in .git, not the individual files inside them. That is to say, B/.git/objects is a symlink to A/.git/objects, B/.git/refs is a symlink to A/.git/refs, etc. In fact, this is necessary for A to see objects and refs written through B.
Matt