Skip to content

Instantly share code, notes, and snippets.

@edwardtoday
Created December 12, 2013 08:51
Show Gist options
  • Save edwardtoday/7925002 to your computer and use it in GitHub Desktop.
Save edwardtoday/7925002 to your computer and use it in GitHub Desktop.
find all .git directories and exec "git pull" on the parent.
# 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