git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git pull . <branch>" versus "git merge <branch>"

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jun 11, 2008, 18:32 UTC
Message-ID
<XZoDb2arIiMts-bX6jjK15wC9cOn5lPGgCOQYbY9YIyNm_nfcDf5gQ@cipher.nrlssc.navy.mil>
In-Reply-To
<alpine.LNX.1.00.0806111340570.19665@iabervon.org>
Daniel Barkalow wrote:
Show 12 quoted lines
> 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
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 10 of 16 in “"git pull . <branch>" versus "git merge <branch>"”
  1. Rene HermanJun 11, 2008
  2. David SymondsJun 11, 2008
  3. Rene HermanJun 11, 2008
  4. Miklos VajnaJun 11, 2008
  5. Rene HermanJun 11, 2008
  6. Paolo BonziniJun 11, 2008
  7. Rene HermanJun 11, 2008
  8. Paolo BonziniJun 11, 2008
  9. Daniel BarkalowJun 11, 2008
  10. Brandon CaseyJun 11, 2008
  11. Daniel BarkalowJun 11, 2008
  12. Brandon CaseyJun 11, 2008
  13. Mikael MagnussonJun 11, 2008
  14. Rene HermanJun 12, 2008
  15. Junio C HamanoJun 11, 2008
  16. Rene HermanJun 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.