Skip to content

Instantly share code, notes, and snippets.

@blakek
Created March 16, 2015 14:09
Show Gist options
  • Save blakek/6cea89ca29014db8b3c5 to your computer and use it in GitHub Desktop.
Save blakek/6cea89ca29014db8b3c5 to your computer and use it in GitHub Desktop.
Updates (via git pull) all github repos in the current directory
#!/bin/bash
for f in *; do
if [ -d "$f/.git" ]; then
pushd "$f" && git pull --quiet && popd
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment