From: Mathias Lafeldt <misfire@debugon.org>
To: Andy <hoangtu69@yahoo.com>
Cc: git@vger.kernel.org
Subject: Re: How to get a remote branch
Date: Thu, 30 Sep 2010 09:48:52 +0200 [thread overview]
Message-ID: <4CA440E4.3080203@debugon.org> (raw)
In-Reply-To: <1285819987771-5586541.post@n2.nabble.com>
Andy wrote:
> 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
next prev parent reply other threads:[~2010-09-30 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 4:13 How to get a remote branch Andy
2010-09-30 7:48 ` Mathias Lafeldt [this message]
2010-09-30 14:42 ` Andy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA440E4.3080203@debugon.org \
--to=misfire@debugon.org \
--cc=git@vger.kernel.org \
--cc=hoangtu69@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).