Skip to content

Instantly share code, notes, and snippets.

@caktux
Forked from danro/git-recursive-pull.sh
Created September 18, 2013 19:31
Show Gist options
  • Save caktux/6614305 to your computer and use it in GitHub Desktop.
Save caktux/6614305 to your computer and use it in GitHub Desktop.
#!/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