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

[Question] Usercase about git clone

From
WSWang Shilong <wangshilong1991@gmail.com>
Date
Jan 17, 2014, 15:53 UTC
Message-ID
<C4261F36-897A-4131-B76C-2E370AFBA63C@gmail.com>
Hello everyone,

I have a question about command 'git clone' If i clone a repo from remote, and if i run command:

# git remote show origin

It will output origin's url, however, this is what i want, i just want to clone codes, but keep everything else unchanged, for example branches and they url….

How can i implement such functions by 'git clone'….I think this is really helpful because i really don't want to reset my branches' url every one…

Really thanks for your time and response!

Thanks, Wang

  
Next: Christian Couder
Message 1 of 2 in “[Question] Usercase about git clone”
  1. Wang ShilongJan 17, 2014
  2. Christian CouderJan 19, 2014

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.