gitshell/ls
2024-02-08 17:57:37 +01:00

12 lines
310 B
Bash
Executable file

#!/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