Rafael Espindola <espind...@google.com> writes:

>>> git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
>>
>> This will put the remote branch heads in refs/remotes, you might want to
>> put them in refs/remotes/origin instead.
>>
>> $ git config --add remote.origin.fetch 
>> '+refs/remotes/*:refs/remotes/origin/*'
>
> One small problem I have with this.

As I wrote in a followup, this is not really a good idea.  You should
put the other remote heads under a different directory, perhaps like
this:

$ git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/gcc/*'

This tells git to fetch the remote heads matching refs/remotes/* and to
make them availble locally under refs/remotes/gcc.

Andreas.

-- 
Andreas Schwab, SuSE Labs, sch...@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to