Last active
December 20, 2017 12:56
-
-
Save rfde/cb2eb70e98484f58acbbb327b4f6cbf7 to your computer and use it in GitHub Desktop.
Pull all git repositories located in subdirectories
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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
for i in ${DIR}/*/.git | |
do | |
echo $i | |
cd $i/.. | |
git pull | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment