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

gh

From
Harald Nordgren <haraldnordgren@gmail.com>
Date
Apr 25, 2026, 18:07 UTC
Message-ID
<20260425180749.49933-1-haraldnordgren@gmail.com>
In-Reply-To
<6F9060F0-20EB-4B60-8677-86DA2AB39B35@gmail.com>
> I’m not totally opposed to this convenience, but couldn’t we also just teach gh to run set-head as a second command?
We probably could, and maybe we should.

One argument for this new options is that I believe 'git clone' has this behavior, so it's attractive if forking (adding a secondary remote) could work in the same way as clone (adding the first remote).

Harald
Previous: Ben KnobleNext: Junio C Hamano
Message 3 of 6 in “remote: add --set-head option to 'git remote add'”
  1. remote: add --set-head option to 'git remote add'Harald Nordgren via GitGitGadget, Apr 25, 2026
  2. Ben KnobleApr 25, 2026
  3. ghHarald Nordgren, Apr 25, 2026
  4. Junio C HamanoApr 25, 2026
  5. Jeff KingApr 25, 2026
  6. Harald NordgrenApr 26, 2026

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.