Re: Creating tracked branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 22, 2010 at 03:47:11PM +0200, Andreas Schwab wrote:
> Petr Baudis <pasky@xxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]