In git, is it possible to fetch multiple remotes in parallel?
Would the below work without clashing with the git file locking in the repository.
git config gc.auto 0
git remote |xargs --max-procs=4 -n 1 git fetch
git gc
I had small test with several repositories and it seems to work when all repositories are unrelated to each other.
It would be nice to get feedback if there is a clear technical reason why the parallel fetching command above wouldn't work.
The submodule is supporting parallel fetching but the parallel fetching would be good when utilizing git-subtree approach.
Similar question: git pull multiple remotes in parallel