Re: multiple checked out branches
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 1, 2007, 22:39 UTC
- Message-ID
- <Pine.LNX.4.64.0708012338250.14781@racer.site>
- In-Reply-To
- <20070801223430.GC2911@steel.home>
Hi,
On Thu, 2 Aug 2007, Alex Riesen wrote:
Show 17 quoted lines
> Domenico Andreoli, Thu, Aug 02, 2007 00:04:35 +0200: > > > > I would like to contemporaneously work with multiple branches out of > > the same git repository. This does not work out of the box. > > > > So I prepare multiple copies of the same repository, every one will have > > its own checked out branch but I want to share most of their .git subdir. > > > > I surely want to share the object db, the local and remote refs. > > This way it is enough to make a round of fetches/merges/pushes to have > > all the shared-repositories up to date. > > > > I expect to do the trick with some symlinks but I am not an expert of > > git internals. Which traps are waiting me? Any hint? Thank you. > > > > No traps. Supported. See for "git clone -s" and "git clone -l"
That is not completely what is wanted, AFAIU: "git clone -s" and "git clone -l" allow for unsynchronised branches. For example, when you committed to branch "foo" in the cloned repo, branch "foo" in the original repo will be older until you push.
Ciao, Dscho