Skip to content

Instantly share code, notes, and snippets.

@vincedgy
Created February 10, 2019 20:56
Show Gist options
  • Save vincedgy/b5c521b77dcad86c41fa290273689436 to your computer and use it in GitHub Desktop.
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
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