Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created March 22, 2010 02:38
Show Gist options
  • Save tjmcewan/339751 to your computer and use it in GitHub Desktop.
Save tjmcewan/339751 to your computer and use it in GitHub Desktop.
pull multiple git repos from the directory above
# 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