dotfiles/.local/bin/get-remotes

11 lines
161 B
Plaintext
Raw Permalink Normal View History

2023-08-14 09:57:10 +00:00
#!/bin/bash
get-remote() {
cd $1 2>/dev/null && git remote -v 2>/dev/null | grep fetch | awk '{print $2}'
}
for folder in $1/*; do
get-remote $folder
done