Created
April 5, 2019 07:33
-
-
Save dmc-at-work/43ebf27bd1e4496ac7ae230fb60893db to your computer and use it in GitHub Desktop.
Multi-Repo Git Pull
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" ] ; then | |
# # $f is a directory | |
# echo "directory: $f" | |
# fi | |
# done | |
# | |
for d in */ ; do | |
echo "$d" | |
cd $d | |
git pull | |
cd .. | |
done | |
# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment