Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Documentation: update git-pull.txt for clone's new default behavior

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:47

"J. Bruce Fields" [off-list ref] writes:
On Mon, Jan 01, 2007 at 03:59:44PM -0800, Luben Tuikov wrote:
quoted
--- "J. Bruce Fields" <bfields@fieldses.org> wrote:
quoted
+git pull origin next::
No.
quoted
+	Merge into the current branch the remote branch `next`;
So, "origin" now means "current branch".
No, "origin" refers to the remote repository that you originally cloned
from.

Pulls always merge into the current branch.  So it wouldn't make sense
to specify the current branch on the command line.
I was also somewhat confused by these examples.  I think the
description is fine as long as we make it clear that they are
not meant to describe what an advanced user _could_ do with
various customizations, but to describe what happens with the
default configuration set up by git-clone.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help