git/list[1] front-page[2] threads[3] people[4] search[5] about
 

multiple checked out branches

From
DADomenico Andreoli <cavokz@gmail.com>
Date
Aug 1, 2007, 22:04 UTC
Message-ID
<20070801220435.GA19226@raptus.dandreoli.com>
Hi again,
  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.

Regards, Domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://www.dandreoli.com/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50
Next: Julian Phillips
Message 1 of 6 in “multiple checked out branches”
  1. Domenico AndreoliAug 1, 2007
  2. Julian PhillipsAug 1, 2007
  3. Domenico AndreoliAug 2, 2007
  4. Guilhem BonnefilleAug 2, 2007
  5. Alex RiesenAug 1, 2007
  6. Johannes SchindelinAug 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.