-
-
Save Rawa/7bbc48fba7503def124c32afefa0cbdc to your computer and use it in GitHub Desktop.
gsd - Git Status Directories, check status of multiple directories simultainously
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
#!/usr/bin/env bash | |
for var in "$@" | |
do | |
if [[ -d $target ]]; then | |
cd $target | |
pwd | |
git fetch | |
git status | sed -n 2p | |
git status --porcelain | |
echo "" | |
cd - > /dev/null | |
else | |
echo "$target is not a valid directory" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment