Created
December 8, 2015 13:05
-
-
Save jjl/6e07d3121c82e5c80e03 to your computer and use it in GitHub Desktop.
Updates all git repos in the current directory. Useful for building swift.
This file contains hidden or 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
for x in *; do | |
if [ -d "$x" ]; then | |
pushd "$x" | |
if [ -d ".git" ]; then git pull; fi | |
popd | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment