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

Additional remote on a local clone. Where do the objects go?

From
SKStephen Kelly <steveire@gmail.com>
Date
Sep 1, 2010, 07:12 UTC
Message-ID
<i5kudr$dp7$1@dough.gmane.org>
Hi,
I have done something like this :

git clone git://gitorious.org/qt/qt.git qtrepo cd qtrepo git checkout -b 4.7 origin/4.7 git checkout -b 4.6 origin/4.6 git clone qtrepo qt46 cd qt46 && git checkout -b 4.6 origin/4.6 cd .. git clone qtrepo qt47 cd qt46 && git checkout -b 4.7 origin/4.7 cd ..

The aim is to have multiple local checkouts of different branches of Qt while sharing the same object store. However, it is inconvenient to have to pull in the qtrepo directory, then cd to the other two to get the changes.

It would be more convenient to be able to add the qt.git remote to the local clones, pull from it, and have the pulled objects shared in the same object store. Is that possible or is it what already happens? I will also want to add additional remotes for pushing changes to from the local clones.

All the best,
Steve.
Next: Tay Ray Chuan
Message 1 of 6 in “Additional remote on a local clone. Where do the objects go?”
  1. Stephen KellySep 1, 2010
  2. Tay Ray ChuanSep 1, 2010
  3. Stephen KellySep 1, 2010
  4. Tay Ray ChuanSep 4, 2010
  5. Stephen KellySep 5, 2010
  6. Jakub NarebskiSep 1, 2010

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.