Created
February 10, 2019 20:56
-
-
Save vincedgy/b5c521b77dcad86c41fa290273689436 to your computer and use it in GitHub Desktop.
Find all the git repo remote urls from the current directory and sub-directories
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
find . \ | |
-name '.git' \ | |
-type d \ | |
-prune \ | |
-maxdepth 2 \ | |
-exec sh -c "echo {}; cd {}; git remote -v" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment