Skip to content

Instantly share code, notes, and snippets.

@maifeeulasad
Last active January 21, 2021 18:22
Show Gist options
  • Save maifeeulasad/9af1c5c53c16ff285aece463318974b8 to your computer and use it in GitHub Desktop.
Save maifeeulasad/9af1c5c53c16ff285aece463318974b8 to your computer and use it in GitHub Desktop.
List all Git repos and their upstreams
chmod +x list_gits.sh
./list_gits.sh
for dirrr in $(find . -mindepth 1 -maxdepth 1 -type d \( -name "*" \) ) ;
do
echo $dirrr
echo #############
cd $dirrr
echo $(git remote show origin)
echo #############
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment