Last active
December 10, 2015 13:39
-
-
Save azet/4442445 to your computer and use it in GitHub Desktop.
pull all project subdirectories in e.g. ~/github/
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
for dir in `find . -maxdepth 1 -type d | tail -n +2`; do cd $dir ; echo "pulling $dir" ; git pull || ( echo "failed in '$dir' - cd to original dir." && cd - 1>/dev/null ; exit 1 ) ; cd - 1>/dev/null ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clone various projects in one dir (e.g. ~/git/ or ~/github/ or even ~/internal_company_projects/). execute the script/line and you'll update all the cloned subdirectories automatically (depth = 1), no submodule checkout though.