git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to get a remote branch

From
Mathias Lafeldt <misfire@debugon.org>
Date
Sep 30, 2010, 07:48 UTC
Message-ID
<4CA440E4.3080203@debugon.org>
In-Reply-To
<1285819987771-5586541.post@n2.nabble.com>
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
Previous: AndyNext: Andy
Message 2 of 3 in “How to get a remote branch”
  1. AndySep 30, 2010
  2. Mathias LafeldtSep 30, 2010
  3. AndySep 30, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.