Created
April 19, 2016 13:40
-
-
Save mkjasinski/ce4bf71bc5215469aceabf007b1a3316 to your computer and use it in GitHub Desktop.
[shell][git] fetch all repos
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 project in `ls -d */`; do | |
cd ./$project | |
if git s &>/dev/null; then | |
pwd | |
git s 2>/dev/null | |
git f 2>/dev/null | |
fi | |
cd .. | |
done; | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment