Skip to content

Instantly share code, notes, and snippets.

@akyoto
Created March 12, 2015 00:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akyoto/d5c213deaa7396a98dc9 to your computer and use it in GitHub Desktop.
Save akyoto/d5c213deaa7396a98dc9 to your computer and use it in GitHub Desktop.
git pull every subdirectory
for dir in ~/projects/*; do (echo "Updating $dir" && cd "$dir" && git pull); done
@akyoto
Copy link
Author

akyoto commented Mar 31, 2015

Parallel instead of sequential:

for dir in ~/projects/*; do (echo "Updating $dir" && cd "$dir" && git pull &); done
sudo apt-get update
sudo apt-get upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment