Created
December 19, 2016 20:09
-
-
Save doekman/c43b0ca06f93da6897f1f39ff3156771 to your computer and use it in GitHub Desktop.
Update all git repositories in direct subdirectories
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
#!/usr/bin/env bash | |
find . -maxdepth 1 -mindepth 1 -type d | while read i; do (cd "$i"; if [[ -d ".git" ]]; then echo "Checking $i" && git pull; fi; cd ..); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment