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

Fetch and refs/remotes/<refname>/HEAD

From
DLDror Livne <dror.livne@mobileye.com>
Date
Aug 3, 2015, 13:28 UTC
Message-ID
<loom.20150803T151815-131@post.gmane.org>

I have noticed that when cloning a repository, I get a refs/remotes/origin/HEAD symbolic ref.

On the other hand, when fetching a new remote, the remote HEAD is not set by git-fetch (but can be added later by `git remote set-head ...')

I was under the impression that clone is equivalent to (at least) init+fetch.
Is there a rationale for that difference in behavior?
Dror Livne
Next: Jeff King
Message 1 of 2 in “Fetch and refs/remotes/<refname>/HEAD”
  1. Dror LivneAug 3, 2015
  2. Jeff KingAug 9, 2015

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.