Skip to content

Instantly share code, notes, and snippets.

@AKuederle
Last active August 29, 2015 14:15
Show Gist options
  • Save AKuederle/256d87f7ec6cac4f41dd to your computer and use it in GitHub Desktop.
Save AKuederle/256d87f7ec6cac4f41dd to your computer and use it in GitHub Desktop.
Find the name of all folders, which have a .git repo inside. Can be used to find the name sof all Git "Projects" on the machine
find ~ -type d -name .git | xargs -n 1 dirname | xargs -n 1 basename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment