From: Tom Lambda <tom.lambda@gmail.com>
To: git@vger.kernel.org
Subject: git pull merges current branch even when <dst> is specified
Date: Wed, 24 Jun 2009 09:47:32 -0700 (PDT) [thread overview]
Message-ID: <1245862052581-3149948.post@n2.nabble.com> (raw)
If I am in 'master' and 'bugfix' is a remote branch in 'repo' which I do not
have locally yet, running:
git pull repo bugfix:bugfix
creates a new local branch 'bugfix' equals to 'repo/bugfix' as expected.
However, it also merges 'bugfix' into 'master', that surprises me since I
explicitly specify that <dst> is 'bugfix'.
I know that I can get what I want by running:
git fetch repo bugfix:bugfix
But the git-pull behavior looks odd to me. I thought that <dst> was the
current branch by default and it could be overridden by specifying it in the
command line.
Thank you,
Tom
--
View this message in context: http://n2.nabble.com/git-pull-merges-current-branch-even-when-%3Cdst%3E-is-specified-tp3149948p3149948.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2009-06-24 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 16:47 Tom Lambda [this message]
2009-06-25 8:52 ` git pull merges current branch even when <dst> is specified Michael J Gruber
2009-06-25 9:44 ` Johannes Schindelin
2009-06-25 13:28 ` Tom Lambda
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=1245862052581-3149948.post@n2.nabble.com \
--to=tom.lambda@gmail.com \
--cc=git@vger.kernel.org \
/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.