{"thread":{"id":"25294","subject":"How to get a remote branch","startedAt":"2010-09-30T04:13:07Z","lastAt":"2010-09-30T14:42:45Z","messageCount":3,"participants":["Andy","Mathias Lafeldt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"152113","messageId":"1285819987771-5586541.post@n2.nabble.com","threadId":"25294","inReplyTo":null,"subject":"How to get a remote branch","fromName":"Andy","fromEmail":"hoangtu69@yahoo.com","sentAt":"2010-09-30T04:13:07Z","receivedAt":"2010-09-30T04:13:07Z","isPatch":false,"sender":{"key":"hoangtu69@yahoo.com","avatar":null},"body":"\nHere's my directory structure\n\norigin -> HEAD\n         -> master\n         -> develop\n\nRight now if I issue command\n\ngit clone https://abc.com/xzy.git and do git branch \n\nthen I have an asterisk next to master.\n\nI want to get branch develop, what command should I issue please?\n-- \nView this message in context: http://git.661346.n2.nabble.com/How-to-get-a-remote-branch-tp5586541p5586541.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"152117","messageId":"4CA440E4.3080203@debugon.org","threadId":"25294","inReplyTo":"1285819987771-5586541.post@n2.nabble.com","subject":"Re: How to get a remote branch","fromName":"Mathias Lafeldt","fromEmail":"misfire@debugon.org","sentAt":"2010-09-30T07:48:52Z","receivedAt":"2010-09-30T07:48:52Z","isPatch":false,"sender":{"key":"misfire@debugon.org","avatar":"https://avatars.githubusercontent.com/u/158074?v=4"},"body":"Andy wrote:\n> Here's my directory structure\n> \n> origin -> HEAD\n>          -> master\n>          -> develop\n> \n> Right now if I issue command\n> \n> git clone https://abc.com/xzy.git and do git branch \n> \n> then I have an asterisk next to master.\n> \n> I want to get branch develop, what command should I issue please?\n\n$ git checkout -b develop origin/develop\n\n-Mathias\n"},{"id":"152159","messageId":"1285857765946-5588030.post@n2.nabble.com","threadId":"25294","inReplyTo":"4CA440E4.3080203@debugon.org","subject":"Re: How to get a remote branch","fromName":"Andy","fromEmail":"hoangtu69@yahoo.com","sentAt":"2010-09-30T14:42:45Z","receivedAt":"2010-09-30T14:42:45Z","isPatch":false,"sender":{"key":"hoangtu69@yahoo.com","avatar":null},"body":"\nThanks. It worked.\n-- \nView this message in context: http://git.661346.n2.nabble.com/How-to-get-a-remote-branch-tp5586541p5588030.html\nSent from the git mailing list archive at Nabble.com.\n"}]}