1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # fetch mirrors [ ! -d "$1" ] && exit 1 ROOTDIR=$(realpath "$1") for dir in $(ls -d "$ROOTDIR/*.git/"); do echo $dir git -C "$dir" fetch --mirror done