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

Re: Git Clone Parameter

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 19, 2013, 15:02 UTC
Message-ID
<7vzjtiy4mh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<51E94025.3090802@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 10 quoted lines
> Am 7/19/2013 11:21, schrieb Allan Acheampong:
>> Something like 'git clone <theRepo> -createLocalBranchesForAllBranches'
>
> Perhaps:
>
> $ git clone theRepo
> $ git fetch origin refs/heads/*:refs/heads/*
>
> (untested). There may be ways to write the same shorter, but I've lost
> track of what is and what is not possible in refspec.

That would overwrite your local branch and would not give you any tracking, no?

Previous: Johannes SixtNext: Junio C Hamano
Message 6 of 10 in “Git Clone Parameter”
  1. Allan AcheampongJul 19, 2013
  2. Ramkumar RamachandraJul 19, 2013
  3. Junio C HamanoJul 19, 2013
  4. Ramkumar RamachandraJul 19, 2013
  5. Johannes SixtJul 19, 2013
  6. Junio C HamanoJul 19, 2013
  7. Junio C HamanoJul 19, 2013
  8. Ramkumar RamachandraJul 19, 2013
  9. Philip OakleyJul 19, 2013
  10. Junio C HamanoJul 19, 2013

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.