Skip to content

Instantly share code, notes, and snippets.

@kiprasmel
Last active December 2, 2022 07:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiprasmel/6f6c68a0a9e435599b7863e485bf2ee1 to your computer and use it in GitHub Desktop.
Save kiprasmel/6f6c68a0a9e435599b7863e485bf2ee1 to your computer and use it in GitHub Desktop.
#!/bin/sh
for p in *projects/; do
printf "\n$p\n\n"
for dir in $(find "./$p" -type d -maxdepth 1); do
gitdir="$dir/.git"
test -d "$gitdir" && {
printf "$dir\n"
git --work-tree="$dir" --git-dir="$gitdir" status -s
}
done
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment