Last active
April 13, 2018 02:44
-
-
Save therako/0e55714d563ac71900e8b7e7583b5e3c to your computer and use it in GitHub Desktop.
Update all repos under the base directory
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
#!/bin/bash | |
for folder in $(ls); | |
do | |
echo "" | |
echo "Updating repo: ${folder}" | |
pushd ${folder} | |
git pull -r | |
popd | |
done | |
echo "Completed!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment