Created
December 7, 2018 15:17
-
-
Save r3b/e2ea4c6015722994333852a7ba87e631 to your computer and use it in GitHub Desktop.
iterate over directories and perform git pull on each
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
for i in $(find . -type d -name '.git'); | |
do dirname $i; | |
echo "$( | |
cd $(dirname $i); | |
git pull; | |
cd - | |
)"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment