Created
December 12, 2018 16:33
-
-
Save roppa/959e2b5bd53a4a718cf00650869ccf94 to your computer and use it in GitHub Desktop.
Git pull origin master in folder containing many git repos
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 f in $PWD/*; | |
do | |
[ -d $f ] | |
cd "$f" | |
echo $f | |
git pull origin master | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment