Created
March 16, 2015 14:09
-
-
Save blakek/6cea89ca29014db8b3c5 to your computer and use it in GitHub Desktop.
Updates (via git pull) all github repos in the current directory
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 f in *; do | |
if [ -d "$f/.git" ]; then | |
pushd "$f" && git pull --quiet && popd | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment