Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
organize your git repo like go
#!/bin/bash
for r in *;
do {
echo ">>> $r" && \
cd $r && \
(git pull || echo 0) && \
cd ..
};
done;
#!/bin/bash
for r in *;
do {
cd $r || break
git remote -v 2> /dev/null | grep fetch | sed 's/https\:\/\/github\.com\///g' | sed 's/git\@github\.com\://g' | sed 's/origin//g' || true
cd ..
};
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.