Last active
May 23, 2019 04:31
-
-
Save ProjectInitiative/0fff7df24b41bcea23d8d48cc4d06820 to your computer and use it in GitHub Desktop.
Pull all immediate Git repo children in the current directory
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 `find . -maxdepth 1 -mindepth 1 -type d` | |
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