#!/bin/bash tree /srv/git -I "hooks|objects|info|branches|refs|HEAD|description|config|cgitrc|FETCH_HEAD|packed-refs" # ls /srv/git -I 'git-shell-commands' # one above misses repos like '.dotfiles', let's do it by hand # for f in $(ls /srv/git -a); do # if [[ $f == *.git ]]; then # echo $f # fi # done