All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Junio C Hamano <gitster@pobox.com>, Aghiles <aghilesk@gmail.com>,
	"Randal L. Schwartz" <merlyn@stonehenge.com>,
	Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
	Sverre Rabbelier <srabbelier@gmail.com>,
	git list <git@vger.kernel.org>
Subject: Re: Creating tracked branches
Date: Thu, 22 Apr 2010 16:17:21 +0200	[thread overview]
Message-ID: <20100422141721.GK3563@machine.or.cz> (raw)
In-Reply-To: <m2sk6n7g68.fsf@igel.home>

On Thu, Apr 22, 2010 at 03:47:11PM +0200, Andreas Schwab wrote:
> Petr Baudis <pasky@suse.cz> writes:
> 
> > P.S.: The "--track without -b implies branch creation" sentence in
> > git-checkout(1) seems to be plain wrong?
> 
> $ git checkout -t origin/maint
> Branch maint set up to track remote branch maint from origin.
> Switched to a new branch 'maint'

Ah! I have not read all the gory details carefully enough. Wonderful,
so this would be:

>   (i) If you do `checkout B`, it will track remote branch B if it
> exists.
> 
>   (ii) If you do `checkout -b B`, it will never auto-track anything.
> 
>   (iii) If you do `git checkout -t -b B`, it will auto-track your
> current _local_ branch.

  (iv) If you do `git checkout -t R`, it will track branch R, deriving
local branch name B from it.

-- 
				Petr "Pasky" Baudis
http://pasky.or.cz/ | "Ars longa, vita brevis." -- Hippocrates

  reply	other threads:[~2010-04-22 14:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 21:13 git pull behavior changed? Aghiles
2010-04-21 21:22 ` Sverre Rabbelier
2010-04-21 21:34   ` Aghiles
2010-04-21 21:55   ` Aghiles
2010-04-21 21:59     ` Sverre Rabbelier
2010-04-21 21:59     ` Matthieu Moy
2010-04-21 22:04       ` Aghiles
2010-04-21 22:23         ` Matthieu Moy
2010-04-21 22:41           ` Aghiles
2010-04-22  0:01             ` Jeff King
2010-04-22  0:13               ` Aghiles
2010-04-22  0:41                 ` Jeff King
2010-04-22  1:27                   ` Aghiles
2010-04-22  2:10                     ` Jeff King
2010-04-21 23:27         ` Randal L. Schwartz
2010-04-21 23:57           ` Aghiles
2010-04-22  8:10             ` Petr Baudis
2010-04-22  8:16               ` Junio C Hamano
2010-04-22 11:49                 ` Creating tracked branches Petr Baudis
2010-04-22 13:47                   ` Andreas Schwab
2010-04-22 14:17                     ` Petr Baudis [this message]
2010-04-22 21:13                 ` git pull behavior changed? Aghiles

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=20100422141721.GK3563@machine.or.cz \
    --to=pasky@suse.cz \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=aghilesk@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=merlyn@stonehenge.com \
    --cc=schwab@linux-m68k.org \
    --cc=srabbelier@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.