git-mirror-update.sh | ●●●●● patch | view | raw | blame | history |
git-mirror-update.sh
New file @@ -0,0 +1,9 @@ #!/bin/bash GIT_DIRECTORY=/Eduardo/git for d in $GIT_DIRECTORY/*; do if grep -q "mirror = true" $d/config; then git -C "$d" remote update --prune fi done