Last active
July 9, 2019 19:54
-
-
Save veggiemonk/3a9c2ef6bbe36308982c72b9230bc451 to your computer and use it in GitHub Desktop.
organize your git repo like go
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
#!/bin/bash | |
for r in *; | |
do { | |
echo ">>> $r" && \ | |
cd $r && \ | |
(git pull || echo 0) && \ | |
cd .. | |
}; | |
done; |
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
#!/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