Skip to content

Instantly share code, notes, and snippets.

@sagi
Last active February 10, 2023 04:42
Show Gist options
  • Save sagi/7d88092a028ad1049017e1fc6dec1ac0 to your computer and use it in GitHub Desktop.
Save sagi/7d88092a028ad1049017e1fc6dec1ac0 to your computer and use it in GitHub Desktop.
Find all uncommitted locals repos in a directory tree

Find all uncommitted local repos in a directory tree

$ find . -type d -name '.git' | while read dir ; do sh -c "cd $dir/../ && echo -e \"\nGIT STATUS IN ${dir//\.git/}\" && git status -s" ; done

Taken from: https://stackoverflow.com/a/32815987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment