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

Re: Git Clone Parameter

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jul 19, 2013, 13:33 UTC
Message-ID
<51E94025.3090802@viscovery.net>
In-Reply-To
<FB572366-0B1D-4053-9255-979CB213B160@gmail.com>
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.

-- Hannes
Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 5 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.