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

FETCH_HEAD question

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 17, 2009, 04:43 UTC
Message-ID
<76718490902162043k78e615b5g7ba4b7ac95e73b18@mail.gmail.com>
I did this the other day out of mild curiosity:

$ git fetch $ git merge FETCH_HEAD

Which did something, but not something that was at all useful. It merges in the first ref listed in FETCH_HEAD. It does not appear to be an accident that it does this, as git merge has special treatment for FETCH_HEAD to generate the merge message.

Why does this behavior exist? Historical?
j.
Next: Jay Soffian
Message 1 of 15 in “FETCH_HEAD question”
  1. Jay SoffianFeb 17, 2009
  2. Jay SoffianFeb 17, 2009
  3. Junio C HamanoFeb 17, 2009
  4. Jay SoffianFeb 17, 2009
  5. Junio C HamanoFeb 17, 2009
  6. Jay SoffianFeb 17, 2009
  7. Junio C HamanoFeb 17, 2009
  8. Jay SoffianFeb 17, 2009
  9. Johannes SchindelinFeb 17, 2009
  10. Jay SoffianFeb 17, 2009
  11. PUSH_HEAD, was Re: FETCH_HEAD questionJohannes Schindelin, Feb 17, 2009
  12. Junio C HamanoFeb 17, 2009
  13. Jay SoffianFeb 18, 2009
  14. Johannes SchindelinFeb 18, 2009
  15. Sitaram ChamartyFeb 17, 2009

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.