Created
August 26, 2014 14:24
-
-
Save atkit/402242728b46fa6fe3ad to your computer and use it in GitHub Desktop.
Recursive 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 dir in $(find . -name ".git"); do | |
echo "Pulling " ${dir%/*} | |
cd ${dir%/*} | |
git pull --ff | |
cd - > /dev/null | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes I just needs simply pull all repos in directory and subdirectories. Recursive