Skip to content

Instantly share code, notes, and snippets.

@ryukinix
Created August 28, 2015 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryukinix/1d671d51326bca24a61e to your computer and use it in GitHub Desktop.
Save ryukinix/1d671d51326bca24a61e to your computer and use it in GitHub Desktop.
Copy-paste solution to get all the usernames/repository an current path
#!/usr/bin/env bash
#
# Bash Script
#
# Copyright © Manoel Vilela
#
#
find . -iname .git -exec bash -c \
"cat '{}/config' | \
grep 'url.*\.git'| \
sed 's/\.git//g' | \
sed 's/\(.*url = .*[\/\/\@].*github.com.\)//g' " \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment