Created
March 28, 2017 14:12
-
-
Save cbuchler/cf3061e2ccca1dfb09d259e46baa4174 to your computer and use it in GitHub Desktop.
Pull all repositories in a given folder
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
function pull_all(){ | |
for dir in *; do | |
if [ -d "$dir/.git" ]; then | |
echo '------------------' | |
echo $dir | |
echo '------------------' | |
(cd $dir && git pull) | |
echo ' ' | |
fi; | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment