Skip to content

Instantly share code, notes, and snippets.

@magicianzrh
Last active August 29, 2015 14:22
Show Gist options
  • Save magicianzrh/8c041bc12accc3e213aa to your computer and use it in GitHub Desktop.
Save magicianzrh/8c041bc12accc3e213aa to your computer and use it in GitHub Desktop.
update all folder git
#!/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