From: Petr Baudis <pasky@suse.cz>
To: Aghiles <aghilesk@gmail.com>
Cc: "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: git pull behavior changed?
Date: Thu, 22 Apr 2010 10:10:56 +0200 [thread overview]
Message-ID: <20100422081055.GG3563@machine.or.cz> (raw)
In-Reply-To: <u2n3abd05a91004211657v3dcdaf40j3608f3d8f59c4c1b@mail.gmail.com>
On Wed, Apr 21, 2010 at 07:57:17PM -0400, Aghiles wrote:
> On Wed, Apr 21, 2010, Randal L. Schwartz wrote:
> > git checkout -b test origin/test
> > ...
> > git pull
> >
> > And it seems to work. It even announces that my test is tracking origin/test.
>
> Yes that syntax works too (although I use origin/master since I am tracking
> the main branch and not the remote "test" branch). Thank you very much.
So, do I understand it right that there is still no canonical syntax to
check out local branch tracking a remote one of the same name, without
spelling out the branch name twice?
--
Petr "Pasky" Baudis
http://pasky.or.cz/ | "Ars longa, vita brevis." -- Hippocrates
next prev parent reply other threads:[~2010-04-22 8:11 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 [this message]
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
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=20100422081055.GG3563@machine.or.cz \
--to=pasky@suse.cz \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=aghilesk@gmail.com \
--cc=git@vger.kernel.org \
--cc=merlyn@stonehenge.com \
--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 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).