Skip to content

Instantly share code, notes, and snippets.

@mwinkle
Last active December 17, 2015 01:39
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 mwinkle/5530485 to your computer and use it in GitHub Desktop.
Save mwinkle/5530485 to your computer and use it in GitHub Desktop.
Very basic one-liner to enumerate all git repo's in a directory (and child directories)
# start of something to help me manage git repos...
# starting with a very basic list of them.
gci -recurse -force -include .git | select -Property Parent, {$_.Parent.FullName}
# ideal next step would potentially parse & return a list of remotes...
# once I get remotes, I should also output current branches
# serialize to a json doc and allow me to pick that back up elsewhere
# integrate iwth a convention to turn into a true one-liner to sync a box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment