Re: [Question] Usercase about git clone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Jan 17, 2014 at 4:53 PM, Wang Shilong <wangshilong1991@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]