Created
December 10, 2014 12:04
-
-
Save sbellver/dfb93475c79c4bd90b03 to your computer and use it in GitHub Desktop.
Check Git Status from all the repos in list
This file contains 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
# It's part from my bash_profile | |
function gitstatus { | |
REPOS=( /route/repo /route/repo2 /route/repo3) | |
for R in "${REPOS[@]}"; do | |
echo "Comprobando repo $R." | |
pushd "$R" >/dev/null && { | |
git status | |
popd >/dev/null | |
} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment