Created
March 13, 2013 17:37
-
-
Save codedependant/5154387 to your computer and use it in GitHub Desktop.
Bash script to run "git status" in all child directories of a given parent directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FOLDER=`pwd` | |
if [ $# -eq 1 ] | |
then | |
FOLDER=`readlink -f $1` | |
fi | |
echo $FOLDER | |
for dir in `ls $FOLDER` | |
do | |
echo ==========================$dir====================== | |
cd $FOLDER/$dir | |
git status | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment