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

[PATCH 0/2] remote: allow a list of remotes in remote.pushDefault

From
Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>
Date
Oct 2, 2026, 07:17 UTC
Message-ID
<pull.2423.git.git.1790925472.gitgitgadget@gmail.com>

Let remote.pushDefault hold a space separated list of remote names and push to the first one configured in the repository, so a single global setting like fork origin works everywhere.

Harald Nordgren (2):
  remote: factor out lookup of a remote by name
  remote: allow a list of remotes in remote.pushDefault
 Documentation/config/remote.adoc |  7 +++++
 remote.c                         | 54 ++++++++++++++++++++++++--------
 t/t5516-fetch-push.sh            | 36 +++++++++++++++++++++
 3 files changed, 84 insertions(+), 13 deletions(-)
base-commit: 0f8e75abebff0877cae681a3d5ff31ac47f54220
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2423%2FHaraldNordgren%2Fremote-pushdefault-list-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2423/HaraldNordgren/remote-pushdefault-list-v1
Pull-Request: https://github.com/git/git/pull/2423
-- 
gitgitgadget
Next: Harald Nordgren via GitGitGadget
Message 1 of 3 in “remote: allow a list of remotes in remote.pushDefault”
  1. 0/2 remote: allow a list of remotes in remote.pushDefaultHarald Nordgren via GitGitGadget, Oct 2, 2026
  2. 1/2 remote: factor out lookup of a remote by nameHarald Nordgren via GitGitGadget, Oct 2, 2026
  3. 2/2 remote: allow a list of remotes in remote.pushDefaultHarald Nordgren via GitGitGadget, Oct 2, 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.