Skip to content

Instantly share code, notes, and snippets.

@jjl
Created December 8, 2015 13:05
Show Gist options
  • Save jjl/6e07d3121c82e5c80e03 to your computer and use it in GitHub Desktop.
Save jjl/6e07d3121c82e5c80e03 to your computer and use it in GitHub Desktop.
Updates all git repos in the current directory. Useful for building swift.
for x in *; do
if [ -d "$x" ]; then
pushd "$x"
if [ -d ".git" ]; then git pull; fi
popd
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment