Skip to content

Instantly share code, notes, and snippets.

@codebam
Forked from danro/git-recursive-pull.sh
Created September 1, 2016 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codebam/a9bc9b80cbaf24270feba938138d0335 to your computer and use it in GitHub Desktop.
Save codebam/a9bc9b80cbaf24270feba938138d0335 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