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

Re: [PATCH] merge: default to @{upstream}

From
Miles Bader <miles@gnu.org>
Date
Jan 31, 2011, 01:55 UTC
Message-ID
<87hbcp25wa.fsf@catnip.gol.com>
In-Reply-To
<1296231457-18780-1-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
> So 'git merge' is 'git merge @{upstream}' instead of 'git merge -h';
> it's better to do something useful.

I totally agree -- this would be a good change[*] -- but this suggestion has been made before, and always gets shot down for vaguely silly reasons...

I often do "git fetch; <see what changed upstream>; git pull". I think this is probably not a rare pattern, when one is working with other people via a shared upstream.

The git-pull is obviously slightly risky because another change could have happened after the fetch, but I use that instead of "git-merge" because git-pull's defaults make it very convenient ... and _usually_ there's no issue... If git-merge had proper defaults (as you suggest), it would be exactly as convenient as git-pull (and _less_ dangerous), so I'd use that instead.

[and, no, saying "you can add an alias!" is not a reasonable answer -- git should be convenient by default!]

-Miles
-- 
Hers, pron. His.
Previous: Martin von Zweigbergk
Message 9 of 9 in “merge: default to @{upstream}”
  1. merge: default to @{upstream}Felipe Contreras, Jan 28, 2011
  2. Drew NorthupJan 28, 2011
  3. Felipe ContrerasJan 28, 2011
  4. Jonathan NiederJan 28, 2011
  5. Felipe ContrerasJan 28, 2011
  6. Jonathan NiederJan 30, 2011
  7. Bert WesargJan 28, 2011
  8. Martin von ZweigbergkJan 28, 2011
  9. Miles BaderJan 31, 2011

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.