Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: Multiple checkouts of the same repository

From: Matt McCutchen <hidden>
Date: 2016-06-15 22:42:42

On 10/1/06, Johannes Schindelin [off-list ref] wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help