Last active
October 27, 2016 23:42
-
-
Save juanitobebe/c72a6d09580678028d164ce0273fbb20 to your computer and use it in GitHub Desktop.
Update 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
#!/usr/bin/env bash | |
for d in */; do | |
echo $d | |
repo="${PWD}/${d}" | |
( | |
{ | |
cd $repo; | |
git checkout master; | |
git pull; | |
} | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment