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

From: Stephen Kelly <[email-masked]>
Date: Wed, 01 Sep 2010 09:12:59 +0200

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.