login
Header Space

 
 

Multiple checkouts of the same repository

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Sunday, October 1, 2006 - 3:03 pm

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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Multiple checkouts of the same repository, Matt McCutchen, (Sun Oct 1, 3:03 pm)
Re: Multiple checkouts of the same repository, Johannes Schindelin, (Sun Oct 1, 3:08 pm)
Re: Multiple checkouts of the same repository, Matt McCutchen, (Sun Oct 1, 3:14 pm)
Re: Multiple checkouts of the same repository, Johannes Schindelin, (Sun Oct 1, 3:17 pm)
Re: Multiple checkouts of the same repository, Matt McCutchen, (Sun Oct 1, 5:04 pm)
Re: Multiple checkouts of the same repository, Daniel Barkalow, (Mon Oct 2, 10:52 pm)
Re: Multiple checkouts of the same repository, Junio C Hamano, (Tue Oct 3, 3:59 am)
Re: Multiple checkouts of the same repository, Johannes Schindelin, (Mon Oct 2, 6:16 am)
speck-geostationary