threads / discuss / 25294

How to get a remote branch

Subject: How to get a remote branch

## tl;dr

3 messages between Sep 30, 2010 and Sep 30, 2010.

replies: 2people: 2as markdown or json

Andy· Sep 30, 2010, 04:13 UTC · lore
Here's my directory structure
origin -> HEAD
         -> master
         -> develop
Right now if I issue command
git clone https://abc.com/xzy.git and do git branch 
then I have an asterisk next to master.
I want to get branch develop, what command should I issue please?
-- 
View this message in context: http://git.661346.n2.nabble.com/How-to-get-a-remote-branch-tp5586541p5586541.html
Sent from the git mailing list archive at Nabble.com.
Mathias Lafeldt· Sep 30, 2010, 07:48 UTC · re: Andy · lore

Re: How to get a remote branch

Andy wrote:
Show 13 quoted lines
> Here's my directory structure
> 
> origin -> HEAD
>          -> master
>          -> develop
> 
> Right now if I issue command
> 
> git clone https://abc.com/xzy.git and do git branch 
> 
> then I have an asterisk next to master.
> 
> I want to get branch develop, what command should I issue please?
$ git checkout -b develop origin/develop
-Mathias
Andy· Sep 30, 2010, 14:42 UTC · re: Mathias Lafeldt · lore

Re: How to get a remote branch

Thanks. It worked.
-- 
View this message in context: http://git.661346.n2.nabble.com/How-to-get-a-remote-branch-tp5586541p5588030.html
Sent from the git mailing list archive at Nabble.com.

← back to recent threads