Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Check Git Status from all the repos in list
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment