My issue is that I have multiple remotes set up, but day to day I only push to one. Let's call this remote 'Frank'. The other one, I almost never pull from, lets call her 'Alex'.
The 'Alex' remote is reliable, 'Frank' is unreliable. He gives me:
fatal: Could not read from remote repository
When I run git fetch --all -p, if 'Frank' fails the error output gets crowded out and pushed off screen by the successful fetching of all the branches updated on 'Alex'. The issue comes, in that if I don't see that 'Frank' has failed again, I carry on gitting as though I'm up to date.
Can I make git --all fail if any of the remotes fail, with an extra option? The Git Fetch Docs give the --atomic option, but that says:
--atomic
Use an atomic transaction to update local refs. Either all refs are updated, or on error, no refs are updated.
Now I'm not certain that would work (does a remote not being reachable tell git that a local ref failed?), but I'm being told that atomic is not an options, and it's not listed in the usage output. I don't and can't get my git updated currently (I'm on v2.20.1).
Is that possible, or maybe something that suppresses anything not from 'Frank' ?