git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] Usercase about git clone
@ 2014-01-17 15:53 Wang Shilong
  2014-01-19 14:44 ` Christian Couder
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Shilong @ 2014-01-17 15:53 UTC (permalink / raw)
  To: git; +Cc: Wang Shilong

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

  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Question] Usercase about git clone
  2014-01-17 15:53 [Question] Usercase about git clone Wang Shilong
@ 2014-01-19 14:44 ` Christian Couder
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Couder @ 2014-01-19 14:44 UTC (permalink / raw)
  To: Wang Shilong; +Cc: git, Wang Shilong

Hi,

On Fri, Jan 17, 2014 at 4:53 PM, Wang Shilong <wangshilong1991@gmail.com> wrote:
> 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,

Is it really what you want or not?

> i just want to clone
> codes, but keep everything else unchanged, for example branches and
> they url….

There are urls for remote not for branches.
Did you look at the --mirror option?
Do you want something like the mirror option but with a working directory?

> 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…

Again there are no urls for branches.

Could you explain better what you would like exactly?

Best,
Christian.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-19 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-17 15:53 [Question] Usercase about git clone Wang Shilong
2014-01-19 14:44 ` Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).