Finding all git repos on your machine and their remotes

21 October 2021

It can be easy to loose track of all the repos on your system; on unix/linux/MacOS the below will print a list of git repos and their remotes

for file in $(locate '.git/config'); do
	grep -H "url" $file | \
    sed '/Homebrew/d'
done