* "git pull . <branch>" versus "git merge <branch>"
@ 2008-06-11 0:51 Rene Herman
2008-06-11 1:06 ` David Symonds
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Rene Herman @ 2008-06-11 0:51 UTC (permalink / raw)
To: git
Good day.
The manpages seem to be making somewhat of a point of mentioning "git
pull . <branch>" as the way to merge a local branch into the current one
but a simple "git merge <branch>" seems to work well. Is there a difference?
Rene.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 0:51 "git pull . <branch>" versus "git merge <branch>" Rene Herman
@ 2008-06-11 1:06 ` David Symonds
2008-06-11 1:13 ` Rene Herman
2008-06-11 17:56 ` Daniel Barkalow
2008-06-11 23:01 ` Junio C Hamano
2 siblings, 1 reply; 16+ messages in thread
From: David Symonds @ 2008-06-11 1:06 UTC (permalink / raw)
To: Rene Herman; +Cc: git
On Wed, Jun 11, 2008 at 10:51 AM, Rene Herman <rene.herman@keyaccess.nl> wrote:
> The manpages seem to be making somewhat of a point of mentioning "git pull .
> <branch>" as the way to merge a local branch into the current one but a
> simple "git merge <branch>" seems to work well. Is there a difference?
git pull also does a fetch in it's usual mode of operation, and runs
git merge to do merge changes in the remote-tracking branches.
Dave.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 1:06 ` David Symonds
@ 2008-06-11 1:13 ` Rene Herman
2008-06-11 1:56 ` Miklos Vajna
0 siblings, 1 reply; 16+ messages in thread
From: Rene Herman @ 2008-06-11 1:13 UTC (permalink / raw)
To: David Symonds; +Cc: git
On 11-06-08 03:06, David Symonds wrote:
> On Wed, Jun 11, 2008 at 10:51 AM, Rene Herman <rene.herman@keyaccess.nl> wrote:
>
>> The manpages seem to be making somewhat of a point of mentioning "git pull .
>> <branch>" as the way to merge a local branch into the current one but a
>> simple "git merge <branch>" seems to work well. Is there a difference?
>
> git pull also does a fetch in it's usual mode of operation, and runs
> git merge to do merge changes in the remote-tracking branches.
So in the case of merging a branch from the local repository into the
current branch, there is no difference between the two?
Rene.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 1:13 ` Rene Herman
@ 2008-06-11 1:56 ` Miklos Vajna
2008-06-11 2:01 ` Rene Herman
2008-06-11 2:04 ` Paolo Bonzini
0 siblings, 2 replies; 16+ messages in thread
From: Miklos Vajna @ 2008-06-11 1:56 UTC (permalink / raw)
To: Rene Herman; +Cc: David Symonds, git
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
On Wed, Jun 11, 2008 at 03:13:45AM +0200, Rene Herman <rene.herman@keyaccess.nl> wrote:
> So in the case of merging a branch from the local repository into the
> current branch, there is no difference between the two?
There is no difference, but you really want to use git merge and not git
pull in such a case, I guess the git pull form is supported mainly to
keep backwards compatibility.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 1:56 ` Miklos Vajna
@ 2008-06-11 2:01 ` Rene Herman
2008-06-11 2:04 ` Paolo Bonzini
1 sibling, 0 replies; 16+ messages in thread
From: Rene Herman @ 2008-06-11 2:01 UTC (permalink / raw)
To: Miklos Vajna; +Cc: David Symonds, git
On 11-06-08 03:56, Miklos Vajna wrote:
> On Wed, Jun 11, 2008 at 03:13:45AM +0200, Rene Herman
> <rene.herman@keyaccess.nl> wrote:
>> So in the case of merging a branch from the local repository into
>> the current branch, there is no difference between the two?
>
> There is no difference, but you really want to use git merge and not
> git pull in such a case, I guess the git pull form is supported
> mainly to keep backwards compatibility.
Thanks much, nice and clear! It might be good to adjust the git-pull
manpage a bit if the merge is preferred? It sorts of sounds like its
advertising the pull method now.
Regards,
Rene
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 1:56 ` Miklos Vajna
2008-06-11 2:01 ` Rene Herman
@ 2008-06-11 2:04 ` Paolo Bonzini
2008-06-11 2:09 ` Rene Herman
1 sibling, 1 reply; 16+ messages in thread
From: Paolo Bonzini @ 2008-06-11 2:04 UTC (permalink / raw)
To: Miklos Vajna; +Cc: Rene Herman, David Symonds, git
Miklos Vajna wrote:
> On Wed, Jun 11, 2008 at 03:13:45AM +0200, Rene Herman <rene.herman@keyaccess.nl> wrote:
>> So in the case of merging a branch from the local repository into the
>> current branch, there is no difference between the two?
>
> There is no difference, but you really want to use git merge and not git
> pull in such a case, I guess the git pull form is supported mainly to
> keep backwards compatibility.
However, when you're on a tracking merge only "git pull" will merge the
right branch automatically into the current branch, fetching the branch
name to merge from the config. If the branch.*.remote config key is
".", it will do a local merge.
Note that "git pull ." is optimized in that the fetch does nothing
except setting up MERGE_HEAD.
Paolo
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 2:04 ` Paolo Bonzini
@ 2008-06-11 2:09 ` Rene Herman
2008-06-11 5:23 ` Paolo Bonzini
0 siblings, 1 reply; 16+ messages in thread
From: Rene Herman @ 2008-06-11 2:09 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Miklos Vajna, David Symonds, git
On 11-06-08 04:04, Paolo Bonzini wrote:
> Miklos Vajna wrote:
>> On Wed, Jun 11, 2008 at 03:13:45AM +0200, Rene Herman
>> <rene.herman@keyaccess.nl> wrote:
>>> So in the case of merging a branch from the local repository into the
>>> current branch, there is no difference between the two?
>>
>> There is no difference, but you really want to use git merge and not git
>> pull in such a case, I guess the git pull form is supported mainly to
>> keep backwards compatibility.
>
> However, when you're on a tracking merge
On a what? :)
> only "git pull" will merge the right branch automatically into the
> current branch, fetching the branch name to merge from the config.
> If the branch.*.remote config key is ".", it will do a local merge.
>
> Note that "git pull ." is optimized in that the fetch does nothing
> except setting up MERGE_HEAD.
Rene.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 2:09 ` Rene Herman
@ 2008-06-11 5:23 ` Paolo Bonzini
0 siblings, 0 replies; 16+ messages in thread
From: Paolo Bonzini @ 2008-06-11 5:23 UTC (permalink / raw)
To: Rene Herman; +Cc: Miklos Vajna, David Symonds, git
>>> There is no difference, but you really want to use git merge and not git
>>> pull in such a case, I guess the git pull form is supported mainly to
>>> keep backwards compatibility.
>>
>> However, when you're on a tracking merge
>
> On a what? :)
Tracking *branch*, sorry. A branch that has configuration options like
[branch "foo"]
remote = origin
merge = next
so that git knows that, when you're on branch foo, "git pull" is
actually equivalent to "git pull origin next:foo".
Paolo
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 0:51 "git pull . <branch>" versus "git merge <branch>" Rene Herman
2008-06-11 1:06 ` David Symonds
@ 2008-06-11 17:56 ` Daniel Barkalow
2008-06-11 18:32 ` Brandon Casey
2008-06-11 23:01 ` Junio C Hamano
2 siblings, 1 reply; 16+ messages in thread
From: Daniel Barkalow @ 2008-06-11 17:56 UTC (permalink / raw)
To: Rene Herman; +Cc: git
On Wed, 11 Jun 2008, Rene Herman wrote:
> Good day.
>
> The manpages seem to be making somewhat of a point of mentioning "git pull .
> <branch>" as the way to merge a local branch into the current one but a simple
> "git merge <branch>" seems to work well. Is there a difference?
Those manpage sections predate the existance of "git merge <branch>". If
you're not planning to use git before November 2006, there's no reason to
use the "git pull ." form. They should probably be replaced with more
helpful examples at this point.
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 17:56 ` Daniel Barkalow
@ 2008-06-11 18:32 ` Brandon Casey
2008-06-11 19:46 ` Daniel Barkalow
0 siblings, 1 reply; 16+ messages in thread
From: Brandon Casey @ 2008-06-11 18:32 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: Rene Herman, git, Miklos Vajna
Daniel Barkalow wrote:
> On Wed, 11 Jun 2008, Rene Herman wrote:
>
>> Good day.
>>
>> The manpages seem to be making somewhat of a point of mentioning "git pull .
>> <branch>" as the way to merge a local branch into the current one but a simple
>> "git merge <branch>" seems to work well. Is there a difference?
>
> Those manpage sections predate the existance of "git merge <branch>". If
> you're not planning to use git before November 2006, there's no reason to
> use the "git pull ." form. They should probably be replaced with more
> helpful examples at this point.
Was there some past discussion of the ui merits of a separate 'merge' command
for dealing with local merges and a 'pull' command for remote merges? I
understand merge is the backend. The question has to do with the high-level
user interface: one command or two? Why wasn't git-pull enough?
I ask because elsewhere in this thread Miklos suggests that git-merge should
be preferred over git-pull when dealing with a local repostory and you suggest
here that the documentation should be updated to use the 'git merge' method
instead of 'git pull'. I had the impression that git-merge was only used by
those who had not yet gotten their mind around the pull methodology. So it
was more of an 'ease the transition from other SCMs' rather than the recommended
way of doing things.
-brandon
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 18:32 ` Brandon Casey
@ 2008-06-11 19:46 ` Daniel Barkalow
2008-06-11 21:01 ` Brandon Casey
0 siblings, 1 reply; 16+ messages in thread
From: Daniel Barkalow @ 2008-06-11 19:46 UTC (permalink / raw)
To: Brandon Casey; +Cc: Rene Herman, git, Miklos Vajna
On Wed, 11 Jun 2008, Brandon Casey wrote:
> Daniel Barkalow wrote:
> > On Wed, 11 Jun 2008, Rene Herman wrote:
> >
> >> Good day.
> >>
> >> The manpages seem to be making somewhat of a point of mentioning "git pull .
> >> <branch>" as the way to merge a local branch into the current one but a simple
> >> "git merge <branch>" seems to work well. Is there a difference?
> >
> > Those manpage sections predate the existance of "git merge <branch>". If
> > you're not planning to use git before November 2006, there's no reason to
> > use the "git pull ." form. They should probably be replaced with more
> > helpful examples at this point.
>
> Was there some past discussion of the ui merits of a separate 'merge' command
> for dealing with local merges and a 'pull' command for remote merges? I
> understand merge is the backend. The question has to do with the high-level
> user interface: one command or two? Why wasn't git-pull enough?
"git pull . <branch>" does "git fetch . <branch>" and then merges it. Of
course, "git fetch . <branch>" does nothing at all, and it's weird as a
user interface to have the only (simple) way of selecting something to
merge be to fetch it as if from a remote repository, but from the local
repository. After all, no other purely local operation requires you to
first fetch the thing you're interesting in from yourself.
> I ask because elsewhere in this thread Miklos suggests that git-merge should
> be preferred over git-pull when dealing with a local repostory and you suggest
> here that the documentation should be updated to use the 'git merge' method
> instead of 'git pull'. I had the impression that git-merge was only used by
> those who had not yet gotten their mind around the pull methodology. So it
> was more of an 'ease the transition from other SCMs' rather than the recommended
> way of doing things.
I think everybody uses "git merge" instead of "git pull ." these days.
It's shorter and less fiddly to type, and doesn't polute your bash reverse
search for "git pull<tab>" with local things. And, if you've got a bunch
of local branches, which is not uncommon and very much native to git, the
intuitive thing is to merge them with "git merge" instead of treating them
as if they weren't local.
It's also now pretty common to want to do "git fetch <remote>", inspect
it, decide whether this is something you want to merge (and depend on),
and do "git merge <tracking>" to include it in your branch if you want it.
(And being able to fetch stuff from a remote location, and later do a
merge without any non-local information is also very git-style.)
Of course, if you're pulling from a remote repository, you generally want
to use "git pull", but you wouldn't be using "git pull ."
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 19:46 ` Daniel Barkalow
@ 2008-06-11 21:01 ` Brandon Casey
2008-06-11 21:49 ` Mikael Magnusson
0 siblings, 1 reply; 16+ messages in thread
From: Brandon Casey @ 2008-06-11 21:01 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: Rene Herman, git, Miklos Vajna
Daniel Barkalow wrote:
> On Wed, 11 Jun 2008, Brandon Casey wrote:
>
>> Daniel Barkalow wrote:
>>> On Wed, 11 Jun 2008, Rene Herman wrote:
>>>
>>>> Good day.
>>>>
>>>> The manpages seem to be making somewhat of a point of mentioning "git pull .
>>>> <branch>" as the way to merge a local branch into the current one but a simple
>>>> "git merge <branch>" seems to work well. Is there a difference?
>>> Those manpage sections predate the existance of "git merge <branch>". If
>>> you're not planning to use git before November 2006, there's no reason to
>>> use the "git pull ." form. They should probably be replaced with more
>>> helpful examples at this point.
>> Was there some past discussion of the ui merits of a separate 'merge' command
>> for dealing with local merges and a 'pull' command for remote merges? I
>> understand merge is the backend. The question has to do with the high-level
>> user interface: one command or two? Why wasn't git-pull enough?
>
> "git pull . <branch>" does "git fetch . <branch>" and then merges it. Of
> course, "git fetch . <branch>" does nothing at all, and it's weird as a
> user interface to have the only (simple) way of selecting something to
> merge be to fetch it as if from a remote repository, but from the local
> repository. After all, no other purely local operation requires you to
> first fetch the thing you're interesting in from yourself.
I don't agree with this paragraph. I think it _would_ be weird if you had
to type 'git fetch' and then 'git merge' (or git pull) when operating on
a local repository, but that is not necessary. It is only necessary to
type 'git pull'. There is symmetry between operating on a remote repository
and operating on a local repository. The user does not need to know that
a noop fetch is first performed, or whether the pull command detects that
it is operating on a local repository and just skips the fetch, any more than
the user is required to know the exact sequence of events that allows an ssh
session to succeed.
>> I ask because elsewhere in this thread Miklos suggests that git-merge should
>> be preferred over git-pull when dealing with a local repostory and you suggest
>> here that the documentation should be updated to use the 'git merge' method
>> instead of 'git pull'. I had the impression that git-merge was only used by
>> those who had not yet gotten their mind around the pull methodology. So it
>> was more of an 'ease the transition from other SCMs' rather than the recommended
>> way of doing things.
>
> I think everybody uses "git merge" instead of "git pull ." these days.
> It's shorter and less fiddly to type, and doesn't polute your bash reverse
> search for "git pull<tab>" with local things. And, if you've got a bunch
> of local branches, which is not uncommon and very much native to git, the
> intuitive thing is to merge them with "git merge" instead of treating them
> as if they weren't local.
Not sure about this one either. I think git-merge is intuitive to those who are
familiar with the operation of git-pull, specifically those that understand how
to use git-fetch and that git-pull does a fetch and then a merge. For those new
to git, I think git-fetch takes a little while to get a handle on.
git-pull allows treating all branches as equal for merging purposes. A user does
not have to differentiate between a local and a remote branch by using different
commands. So I did not see it as 'treating [a local branch] as if they weren't local',
but instead as a single command to merge branches regardless of whether they are
local or remote.
Suggesting git-merge is what requires the user to make a distinction between local
and remote branches.
> It's also now pretty common to want to do "git fetch <remote>", inspect
> it, decide whether this is something you want to merge (and depend on),
> and do "git merge <tracking>" to include it in your branch if you want it.
> (And being able to fetch stuff from a remote location, and later do a
> merge without any non-local information is also very git-style.)
Yes, I agree that it is common to fetch and inspect before merging. The
'git merge <tracking>' could have been 'git pull . <tracking>', which only
requires typing one additional character. The user _must_ know how to use
git-pull, and the concept of '.' as a placeholder for the local repository
takes only a moment to digest. git-merge is an additional command that the
user must know when to use and when not to use. Well maybe that exaggerates
the point a little, git-merge is not that complicated, but it is an additional
command to learn with little benefit that I see.
To summarize my point, I think the recommended advertised merge command could
be one single command 'git-pull' and that it should be used in the documentation
in preference to 'git-merge'. It seems to me that this simplifies the user
interface and requires the user to master fewer commands before becoming productive.
Also, I thought this was already the status-quo and so I have been surprised by the
increasing suggestions to use git-merge on the mailing list. I saw it as something
similar to suggestions I've seen to use git-reflog (not porcelain) rather than
'git-log -g' (porcelain).
-brandon
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 21:01 ` Brandon Casey
@ 2008-06-11 21:49 ` Mikael Magnusson
2008-06-12 0:56 ` Rene Herman
0 siblings, 1 reply; 16+ messages in thread
From: Mikael Magnusson @ 2008-06-11 21:49 UTC (permalink / raw)
To: Brandon Casey; +Cc: Daniel Barkalow, Rene Herman, git, Miklos Vajna
2008/6/11 Brandon Casey <casey@nrlssc.navy.mil>:
> Daniel Barkalow wrote:
>> On Wed, 11 Jun 2008, Brandon Casey wrote:
>>
>>> Daniel Barkalow wrote:
>>>> On Wed, 11 Jun 2008, Rene Herman wrote:
>>>>
>>>>> Good day.
>>>>>
>>>>> The manpages seem to be making somewhat of a point of mentioning "git pull .
>>>>> <branch>" as the way to merge a local branch into the current one but a simple
>>>>> "git merge <branch>" seems to work well. Is there a difference?
>>>> Those manpage sections predate the existance of "git merge <branch>". If
>>>> you're not planning to use git before November 2006, there's no reason to
>>>> use the "git pull ." form. They should probably be replaced with more
>>>> helpful examples at this point.
>>> Was there some past discussion of the ui merits of a separate 'merge' command
>>> for dealing with local merges and a 'pull' command for remote merges? I
>>> understand merge is the backend. The question has to do with the high-level
>>> user interface: one command or two? Why wasn't git-pull enough?
>>
>> "git pull . <branch>" does "git fetch . <branch>" and then merges it. Of
>> course, "git fetch . <branch>" does nothing at all, and it's weird as a
>> user interface to have the only (simple) way of selecting something to
>> merge be to fetch it as if from a remote repository, but from the local
>> repository. After all, no other purely local operation requires you to
>> first fetch the thing you're interesting in from yourself.
>
> I don't agree with this paragraph. I think it _would_ be weird if you had
> to type 'git fetch' and then 'git merge' (or git pull) when operating on
> a local repository, but that is not necessary. It is only necessary to
> type 'git pull'. There is symmetry between operating on a remote repository
> and operating on a local repository. The user does not need to know that
> a noop fetch is first performed, or whether the pull command detects that
> it is operating on a local repository and just skips the fetch, any more than
> the user is required to know the exact sequence of events that allows an ssh
> session to succeed.
> The user _must_ know how to use git-pull
I've used git for a couple of months, and I've never used git-pull, only fetch
and merge. To me it doesn't make any sense that you would want to merge changes
without looking at them first. It also seems very strange to me to treat
not-yet-fetched branches on a remote the same as a local branch. I don't really
have any useful input other than that you shouldn't assume what other people
find intuitive, because you are usually wrong :).
> Well maybe that exaggerates the point a little, git-merge is not that complicated,
> but it is an additional command to learn with little benefit that I see.
For me, git-pull is that additional command, and using git-pull .
<branch> to merge
feels really really strange. Why would I pull something I already have?
> I saw it as something similar to suggestions I've seen to use git-reflog
> (not porcelain) rather than 'git-log -g' (porcelain).
The output of git-reflog is easier to read when you know what you're
looking for,
the actual commit message and author info that log outputs is usually
superfluous.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 0:51 "git pull . <branch>" versus "git merge <branch>" Rene Herman
2008-06-11 1:06 ` David Symonds
2008-06-11 17:56 ` Daniel Barkalow
@ 2008-06-11 23:01 ` Junio C Hamano
2008-06-12 1:00 ` Rene Herman
2 siblings, 1 reply; 16+ messages in thread
From: Junio C Hamano @ 2008-06-11 23:01 UTC (permalink / raw)
To: Rene Herman; +Cc: git
Rene Herman <rene.herman@keyaccess.nl> writes:
> Good day.
>
> The manpages seem to be making somewhat of a point of mentioning "git
> pull . <branch>" as the way to merge a local branch into the current
> one but a simple "git merge <branch>" seems to work well. Is there a
> difference?
There isn't any.
"git pull . this_branch" is just a natural and logical consequence that
you can fetch and merge a branch B from remote U with "git pull $U $B".
"git merge that_branch" exists and useful because people on average merge
local branches more than they fetch and merge from remote repository.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 21:49 ` Mikael Magnusson
@ 2008-06-12 0:56 ` Rene Herman
0 siblings, 0 replies; 16+ messages in thread
From: Rene Herman @ 2008-06-12 0:56 UTC (permalink / raw)
To: Mikael Magnusson; +Cc: Brandon Casey, Daniel Barkalow, git, Miklos Vajna
On 11-06-08 23:49, Mikael Magnusson wrote:
> For me, git-pull is that additional command, and using git-pull .
> <branch> to merge feels really really strange. Why would I pull
> something I already have?
For what it's worth I (as thread starter) agree with this. At least in
my mind local and remote branches are very different and I do not mind
having to "fetch" the latter first before merging (nor combine the two
through a "pull").
I can see the reason for the other viewpoint as well since it emphasises
a point about local and remote branches _not_ being very different after
all but that's more a symmetry to the implementor than it is to a user I
feel. For the user, local and remote branches just are different.
And as such I feel it actually helps to just use "merge". Thanks for the
answers everyone -- this was a matter of a user worrying that he wasn't
getting it...
Rene
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: "git pull . <branch>" versus "git merge <branch>"
2008-06-11 23:01 ` Junio C Hamano
@ 2008-06-12 1:00 ` Rene Herman
0 siblings, 0 replies; 16+ messages in thread
From: Rene Herman @ 2008-06-12 1:00 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On 12-06-08 01:01, Junio C Hamano wrote:
> Rene Herman <rene.herman@keyaccess.nl> writes:
>> The manpages seem to be making somewhat of a point of mentioning "git
>> pull . <branch>" as the way to merge a local branch into the current
>> one but a simple "git merge <branch>" seems to work well. Is there a
>> difference?
>
> There isn't any.
>
> "git pull . this_branch" is just a natural and logical consequence that
> you can fetch and merge a branch B from remote U with "git pull $U $B".
>
> "git merge that_branch" exists and useful because people on average merge
> local branches more than they fetch and merge from remote repository.
Thank you. Slowly getting more comfortable with git...
Rene.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2008-06-12 1:01 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 0:51 "git pull . <branch>" versus "git merge <branch>" Rene Herman
2008-06-11 1:06 ` David Symonds
2008-06-11 1:13 ` Rene Herman
2008-06-11 1:56 ` Miklos Vajna
2008-06-11 2:01 ` Rene Herman
2008-06-11 2:04 ` Paolo Bonzini
2008-06-11 2:09 ` Rene Herman
2008-06-11 5:23 ` Paolo Bonzini
2008-06-11 17:56 ` Daniel Barkalow
2008-06-11 18:32 ` Brandon Casey
2008-06-11 19:46 ` Daniel Barkalow
2008-06-11 21:01 ` Brandon Casey
2008-06-11 21:49 ` Mikael Magnusson
2008-06-12 0:56 ` Rene Herman
2008-06-11 23:01 ` Junio C Hamano
2008-06-12 1:00 ` Rene Herman
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).