Skip to content

Instantly share code, notes, and snippets.

@rodolfo42
Created May 27, 2014 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodolfo42/0afea5e1d8d0ae624064 to your computer and use it in GitHub Desktop.
Save rodolfo42/0afea5e1d8d0ae624064 to your computer and use it in GitHub Desktop.
Update all repos that live under the first level of the current directory
#!/bin/bash
for D in *; do
if [ -d "${D}" ] && [ -d "${D}/.git" ]; then
echo "--> ${D}\n"
pushd "${D}"
git up
popd
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment