Created
March 22, 2010 02:38
-
-
Save tjmcewan/339751 to your computer and use it in GitHub Desktop.
pull multiple git repos from the directory above
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
# pull all git-based projects in the current directory (doesn't hurt non-git directories) | |
# for TextMate bundles: run this from [~]/Library/Application\ Support/TextMate/Bundles/ | |
for repo in *; do if [ -d "$repo" ]; then cd "$repo"; git pull origin; cd ../; fi done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment