Skip to content

Instantly share code, notes, and snippets.

@danro
Created September 18, 2010 22:55
Show Gist options
  • 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