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

Re: How to have multiple working copy directories use the same repository?

From
Alex Riesen <raa.lkml@gmail.com>
Date
Oct 11, 2007, 19:00 UTC
Message-ID
<20071011190025.GC2804@steel.home>
In-Reply-To
<744844.82514.qm@web55015.mail.re4.yahoo.com>
Bill Priest, Thu, Oct 11, 2007 20:10:50 +0200:
>   I've looked at the "git for CVS users" section in
> the docs and this appears to create two repositories. 
> Is there a way to have two working directories that
> utilize the same repository?

Look for "alternates" in git's documentation. But read all the warnings regarding git-gc and git-prune. Make a note of ".keep" files.

>   I'm betting that I'm just trying to push my workflow
> style onto git instead of adapting to the git way of
> doing things; but thought I would ask.

Git is flexible enough to accomodate almost any existing workflow. Just some of them work better.

Previous: Bill PriestNext: Shawn O. Pearce
Message 2 of 4 in “How to have multiple working copy directories use the same repository?”
  1. Bill PriestOct 11, 2007
  2. Alex RiesenOct 11, 2007
  3. Shawn O. PearceOct 12, 2007
  4. SergioOct 11, 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.