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

Re: clone

From
RVRoald de Vries <rdv@roalddevries.nl>
Date
Jul 21, 2009, 09:56 UTC
Message-ID
<0884A878-A57C-4089-AE32-A3D1ACC32FED@roalddevries.nl>
In-Reply-To
<4A6576B3.7000503@drmicha.warpmail.net>
Hi Michael,

I actually meant cloning all branches to both remote and non-remote (but remote-tracking) branches. But still, the --mirrorring is usefull, thx.

Kind regards, Roald
On Jul 21, 2009, at 10:05 AM, Michael J Gruber wrote:
Show 18 quoted lines
> Roald de Vries venit, vidit, dixit 20.07.2009 16:33:
>> Dear all,
>>
>> If I clone a repository with multiple branches to 'newdir', and then
>> type 'git branch' in 'newdir', I see only 1 branch. 'git branch -r'
>> gives me all branches. Is that correct behaviour? If so, why? And
>> mainly: can I configure git to clone all original branches to non-
>> remote branches?
>>
>> Kind regards, Roald
>
> A for the 2nd part (1st one answered by Jeff), you can "git clone -- 
> mirror".
>
> But me suspects that you actually want (s)cp -rp, do you?
>
> Michael
>
Previous: Michael J Gruber
Message 4 of 4 in “clone”
  1. Roald de VriesJul 20, 2009
  2. Jeff KingJul 20, 2009
  3. Michael J GruberJul 21, 2009
  4. Roald de VriesJul 21, 2009

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.