Git development
 help / color / mirror / Atom feed
From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Mike Gant <mwgant@gmail.com>, git@vger.kernel.org
Subject: Re: git clone operation
Date: Sun, 17 Aug 2008 21:38:33 +0200	[thread overview]
Message-ID: <20080817193833.GA29469@atjola.homenet> (raw)
In-Reply-To: <m3wsifsawl.fsf@localhost.localdomain>

On 2008.08.17 12:23:57 -0700, Jakub Narebski wrote:
> Mike Gant <mwgant@gmail.com> writes:
> > I realize that I can create a new local branch that is based off the
> > desired branch:
> > 
> > $ git-checkout -b master origin/master
> > 
> > Is this the accepted method for obtaining the desired branch?
> 
> You can use (with new anough Git)
> 
>   $ git checkout --track -b master origin/master
> 
> to setup repository in such way that "git pull" on 'master'
> would know that it is meant to fetch from 'origin' and merge
> 'origin/master'.

branch.autosetupmerge is set to true by default, so for remote branches
--track is the default anyway (since 1.5.5 IIRC). So only an old enough
git would actually require --track, unless you changed the config ;-)

Björn

  reply	other threads:[~2008-08-17 19:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-17 18:44 git clone operation Mike Gant
2008-08-17 19:23 ` Jakub Narebski
2008-08-17 19:38   ` Björn Steinbrink [this message]
2008-08-20  2:23     ` Mike Gant
2008-08-20  2:27       ` Mike Gant

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=20080817193833.GA29469@atjola.homenet \
    --to=b.steinbrink@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=mwgant@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