Created
July 26, 2013 14:28
-
-
Save josephfinlayson/6089286 to your computer and use it in GitHub Desktop.
Shell script to pull updates from git for all subfolders
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
files=`ls $1` | |
for file in $files; do | |
if [ -d $file ];then | |
cd $file | |
git pull | |
git checkout rel-15 | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment