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

Git multiple remotes push stop at first failed connection

From
John Siu <john.sd.siu@gmail.com>
Date
Jun 1, 2020, 00:28 UTC
Message-ID
<CAGKX4vGhTbEqZS9+iYA2wZWRRaddQC6O4KV+zLaNYKkZgN36Xg@mail.gmail.com>
Hi,
git version 2.26.2
OS: MacOS 10.15.5
Install via brew
Let say my project has following remotes:

$ git remote -v git.all "server A git url" (fetch) git.all "server A git url" (push) git.all "server B git url" (push) git.all "server C git ur" (push)

When all serverA/B/C are online, "git push" works.

However "git push" will stop at the first server it failed to connect. So if git cannot connect to server A, it will not continue with server B/C.

In the past I have server C turn off from time to time, so failing the last push is expected. However recently server A went offline completely and we notice git is not pushing to the remaining 2 remotes.

Not sure if this is intended behavior or can be improved.
John Siu
Next: Jeff King
Message 1 of 5 in “Git multiple remotes push stop at first failed connection”
  1. John SiuJun 1, 2020
  2. Jeff KingJun 1, 2020
  3. John SiuJun 2, 2020
  4. Junio C HamanoJun 2, 2020
  5. John SiuJun 2, 2020

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.