[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