Created
November 3, 2015 04:25
-
-
Save jbenner-radham/f66d7fe679dc396c551a to your computer and use it in GitHub Desktop.
Update all the Git repos inside your current working directory.
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
| #!/usr/bin/env sh | |
| for dir in $(ls); do | |
| if [ -d "${dir}/.git" ]; then | |
| echo "Updating \"${dir}\"..." | |
| (cd "$dir" && git pull) | |
| echo "\n" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment