Skip to content

Instantly share code, notes, and snippets.

@ironman9967
Last active August 19, 2017 16:35
Show Gist options
  • Save ironman9967/c39429d3f93eaa3fc796a10f11daefa1 to your computer and use it in GitHub Desktop.
Save ironman9967/c39429d3f93eaa3fc796a10f11daefa1 to your computer and use it in GitHub Desktop.
run `git status` on all directories in the cwd
#!/bin/bash
for d in ./*/
do
echo ""
echo " -------------------------------------------- "
echo ""
echo ""
cd "$d"
echo "SUBDIR --> $d"
echo ""
git status
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment