Created
November 9, 2020 02:31
-
-
Save anthonygore/5543007170738b2b93123e7747658b5c to your computer and use it in GitHub Desktop.
Bash script to print out the git remote of every subdirectory in the folder
This file contains 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
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