Skip to content

Instantly share code, notes, and snippets.

@tigerclaw-az
Created May 23, 2014 16:29
Show Gist options
  • Save tigerclaw-az/56b706fbd95e22c570ef to your computer and use it in GitHub Desktop.
Save tigerclaw-az/56b706fbd95e22c570ef to your computer and use it in GitHub Desktop.
Update all Git repos found in a given directory
#!/bin/sh
find $1 -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment