Created
June 9, 2016 09:25
-
-
Save sunnyratilal/6a05f522f45796988c1e5f4da8f2d5a8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
CUR_DIR=$(pwd) | |
echo "Traversing directories..." | |
for i in $(find . -name ".git" | cut -c 3-); do | |
echo $i; | |
cd "$i"; | |
cd ..; | |
git pull origin master; | |
cd $CUR_DIR | |
done | |
echo "All repositories successfully updated" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment