#!/bin/bash find /srv/git -name '*.git' -type d|while read -r dir; do(cd "$dir" && git gc); done