Skip to content

Instantly share code, notes, and snippets.

@iturgeon
Last active August 29, 2015 14:01
Show Gist options
  • Save iturgeon/0ed799c2c099f9093705 to your computer and use it in GitHub Desktop.
Save iturgeon/0ed799c2c099f9093705 to your computer and use it in GitHub Desktop.
Git: Pull every git repository in a subdirectory
find . -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