Last active
August 29, 2015 14:22
-
-
Save magicianzrh/8c041bc12accc3e213aa to your computer and use it in GitHub Desktop.
update all folder git
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/sh | |
#更新同目录文件夹中的git | |
ls -d */ | while read F; | |
do | |
echo ${F}; | |
cd ${F}; | |
git pull --rebase && git submodule update --init --recursive; | |
cd -; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment