git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multiple checkouts of the same repository
@ 2006-10-01 19:03 Matt McCutchen
  2006-10-01 19:08 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Matt McCutchen @ 2006-10-01 19:03 UTC (permalink / raw)
  To: git

Dear git people,

Maybe this is common knowledge, but I thought I should mention it in
case it isn't.  I had a git repository in a directory A and I wanted
to check out a branch of the repository to a different directory B.
So I created B/.git and filled it with symlinks pointing to the files
in A/.git, except for index and HEAD because those need to be
different for each checkout; then I ran git-checkout <branch> to fill
B.  Now I can view and edit each checkout independently, but they are
backed by the same set of objects and refs.  However, I must remember
to commit to each branch only through the checkout whose HEAD is
linked to it, otherwise that checkout won't get updated.

Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-10-03  8:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 19:03 Multiple checkouts of the same repository Matt McCutchen
2006-10-01 19:08 ` Johannes Schindelin
2006-10-01 19:14   ` Matt McCutchen
2006-10-01 19:17     ` Johannes Schindelin
2006-10-01 21:04       ` Matt McCutchen
2006-10-02 10:16         ` Johannes Schindelin
2006-10-03  2:52         ` Daniel Barkalow
2006-10-03  7:59           ` Junio C Hamano

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).