Skip to content

Instantly share code, notes, and snippets.

@stoeffel
Created August 6, 2014 06:55
Show Gist options
  • Save stoeffel/d74f7154d95783fd1ced to your computer and use it in GitHub Desktop.
Save stoeffel/d74f7154d95783fd1ced to your computer and use it in GitHub Desktop.
check if repos are up to date
#!/bin/bash
find . -type d 2>/dev/null | grep -v node_modules | while read d; do
if [ -d "$d/.git" ]; then
if [ ! -z "$(git -C $d status --porcelain)" ]; then
echo $d;
fi
fi
done
@stoeffel
Copy link
Author

stoeffel commented Aug 6, 2014

thanks to @bylexus

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