git config remotes.default "faster slower"
Then the subsequent git remote update or git fetch --all will always update the remotes in the specified order, that is, first faster , then slower .
Note:
These are remotes , with the ending 's' .
Here default is the name of the group, other names are in order, but then you need to specify, for example, git remote update <group> . default is the name of the default group, if not specified.
Alternatively, at the beginning of the implementation, since git fetch --all (also used by git remote update ) processes the remotes in the order in which they appear in .git/config , so you can change the order in .git/config to do trick. But this is not part of the API, so it can be broken when changing the implementation details, as @chwarr pointed out .
source share