Re: Working with remotes; cloning remote references
- From
- Peter Harris <git@peter.is-a-geek.org>
- Date
- Oct 16, 2008, 19:20 UTC
- Message-ID
- <eaa105840810161220k26eebd48q8de606597f2be055@mail.gmail.com>
- In-Reply-To
- <48F7852F.109@xiplink.com>
On Thu, Oct 16, 2008 at 2:17 PM, Marc Branchaud wrote:
> From this point of view (and please correct me if I'm wrong), it would be > good if "git clone" had an option to include a repo's remote references in > the clone. The clone's origin reference would point to the original repo as > usual, but all the other remotes would be in the clone.
"git clone" doesn't have this option, but you can turn it on immediately after with something similar to: git config --add remote.origin.fetch +refs/remotes/*:refs/remotes/* (which I use for fanning-out my git-svn repos)
See "git help fetch" for further documentation.
Peter Harris