chmod +x list_gits.sh
./list_gits.sh
Last active
January 21, 2021 18:22
-
-
Save maifeeulasad/9af1c5c53c16ff285aece463318974b8 to your computer and use it in GitHub Desktop.
List all Git repos and their upstreams
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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