Skip to content

Instantly share code, notes, and snippets.

@dg1an3
Created November 11, 2019 23:42
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 dg1an3/24a8af3a9df5c598fde400f0494e55ef to your computer and use it in GitHub Desktop.
Save dg1an3/24a8af3a9df5c598fde400f0494e55ef to your computer and use it in GitHub Desktop.
get the status of all git repos from a common parent directory
gci . |?{$_.PSIsContainer}|?{Test-Path $_\.git}|foreach {pushd $_; git status; popd}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment