Skip to content

Instantly share code, notes, and snippets.

@danro
Created September 18, 2010 22:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save danro/586139 to your computer and use it in GitHub Desktop.
Save danro/586139 to your computer and use it in GitHub Desktop.
Bash git recursive pull
#!/bin/bash
# find all .git directories and exec "git pull" on the parent.
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