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

how to clone all branches include remote branches

From
GKgnu kevin <kevin.gnu.zhang@gmail.com>
Date
Feb 10, 2009, 17:49 UTC
Message-ID
<95463c700902100949w23a95536re9a65a2e5c3c0b5d@mail.gmail.com>
hi,

I'd like to know how to get all remote(grandparent) branches by clone a remote repo . for example: remote repo ABC contains below branches: master stable/main dev/main

while master is the local branch in remote repo and stable/main & dev/main is two remote branches of that remote repo, when I clone from ABC repo, I can only get a copy of ABC's local branch master, how can I get those two remote(grandparent) branches also copied?

BRs, Kevin

Next: Johannes Gilger
Message 1 of 2 in “how to clone all branches include remote branches”
  1. gnu kevinFeb 10, 2009
  2. Johannes GilgerFeb 10, 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.