git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
To: Patrick Notz <patnotz@gmail.com>
Cc: git list <git@vger.kernel.org>
Subject: Re: Clone a repo and checkout a specifc remote branch
Date: Sun, 8 Mar 2009 00:25:15 +0100	[thread overview]
Message-ID: <4d8e3fd30903071525g27960764rbc1cee77e4334a6e@mail.gmail.com> (raw)
In-Reply-To: <1cd1989b0903071053l3f7aa35bu8e8e6b7e56cfc34f@mail.gmail.com>

On 3/7/09, Patrick Notz <patnotz@gmail.com> wrote:

>> Something like:
>> $ git clone git://uri_of_the_repo:coolbranch localdir
>> to get a clone of the whole repository and to check out the
>> origin/coolbranch remote branch?
>>
>
> Here's a link to a recent thread on this topic (that started with a
> proposed patch)
>
> http://thread.gmane.org/gmane.comp.version-control.git/111967
>
> You can read the arguments there.  Johannes Schindelin noted that the
> normal way to do this is like this:
>
> <quote>
> Besides, the common way to check out something different than the remote's
> HEAD is like this:
>
> $ git clone -n $URL
> $ cd $DIR
> $ git checkout -t origin/$BRANCH
> </quote>

Thank you, very appreciated, I missed that discussion.

I'll add my comments to that thread.

Regards,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/
http://mypage.vodafone.it/

      reply	other threads:[~2009-03-07 23:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-07 11:42 Clone a repo and checkout a specifc remote branch Paolo Ciarrocchi
2009-03-07 18:53 ` Patrick Notz
2009-03-07 23:25   ` Paolo Ciarrocchi [this message]

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=4d8e3fd30903071525g27960764rbc1cee77e4334a6e@mail.gmail.com \
    --to=paolo.ciarrocchi@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=patnotz@gmail.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).