Skip to content

Instantly share code, notes, and snippets.

@cwaring
Created September 1, 2014 16:52
Show Gist options
  • Save cwaring/85891e6c3f19a6ed682e to your computer and use it in GitHub Desktop.
Save cwaring/85891e6c3f19a6ed682e to your computer and use it in GitHub Desktop.
Update all repos in a directory
#!/bin/sh
for dir in *
do
echo $dir
(cd $dir && git pull)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment