Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash script to print out the git remote of every subdirectory in the folder
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do
if [ -e $dir/.git ];
then
git -C $dir remote -v
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment