find uncommited git folders
#!/bin/bash
for gitfolder in $(find -name .git -type d)
do
projectFolder=$(sed -r 's/\/.git//g' <<< "$gitfolder")
changed=$(git --git-dir "$gitfolder" --work-tree "$projectFolder" ls-files -m -o --exclude-standard | wc -l)
if (( $changed > 0 )); then
echo "Änderung gefunden in $projectFolder"
echo
echo "changed files:"
echo "$(git --git-dir "$gitfolder" --work-tree "$projectFolder" ls-files -m -o --exclude-standard)"
echo "----------------------------------"
echo
fi
done
exit;