{"thread":{"id":"35681","subject":"[Question] Usercase about git clone","startedAt":"2014-01-17T15:53:15Z","lastAt":"2014-01-19T14:44:00Z","messageCount":2,"participants":["Wang Shilong","Christian Couder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233291","messageId":"C4261F36-897A-4131-B76C-2E370AFBA63C@gmail.com","threadId":"35681","inReplyTo":null,"subject":"[Question] Usercase about git clone","fromName":"Wang Shilong","fromEmail":"wangshilong1991@gmail.com","sentAt":"2014-01-17T15:53:15Z","receivedAt":"2014-01-17T15:53:15Z","isPatch":false,"sender":{"key":"wangshilong1991@gmail.com","avatar":null},"body":"Hello everyone,\n\nI have a question about command 'git clone'\nIf i clone a repo from remote, and if i run command:\n\n# git remote show origin\n\nIt will output origin's url, however, this is what i want,  i just want to clone\ncodes, but keep everything else unchanged, for example branches and\nthey url….\n\nHow can i implement such functions by 'git clone'….I think this is really\nhelpful because i really don't want to reset my branches' url every one…\n\nReally thanks for your time and response!\n\nThanks,\nWang\n\n  "},{"id":"233381","messageId":"CAP8UFD2w=UpMFXMsT58GbMVZWQ-yANjhL-VEitN4u-HJsttwDA@mail.gmail.com","threadId":"35681","inReplyTo":"C4261F36-897A-4131-B76C-2E370AFBA63C@gmail.com","subject":"Re: [Question] Usercase about git clone","fromName":"Christian Couder","fromEmail":"christian.couder@gmail.com","sentAt":"2014-01-19T14:44:00Z","receivedAt":"2014-01-19T14:44:00Z","isPatch":false,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Hi,\n\nOn Fri, Jan 17, 2014 at 4:53 PM, Wang Shilong <wangshilong1991@gmail.com> wrote:\n> Hello everyone,\n>\n> I have a question about command 'git clone'\n> If i clone a repo from remote, and if i run command:\n>\n> # git remote show origin\n>\n> It will output origin's url, however, this is what i want,\n\nIs it really what you want or not?\n\n> i just want to clone\n> codes, but keep everything else unchanged, for example branches and\n> they url….\n\nThere are urls for remote not for branches.\nDid you look at the --mirror option?\nDo you want something like the mirror option but with a working directory?\n\n> How can i implement such functions by 'git clone'….I think this is really\n> helpful because i really don't want to reset my branches' url every one…\n\nAgain there are no urls for branches.\n\nCould you explain better what you would like exactly?\n\nBest,\nChristian.\n"}]}