Skip to content

Instantly share code, notes, and snippets.

@stephen2m
Forked from devp619/git-pull-recursive.sh
Created March 29, 2021 20:03
Show Gist options
  • Save stephen2m/05be806b5f3d23d26f6809460c70816c to your computer and use it in GitHub Desktop.
Save stephen2m/05be806b5f3d23d26f6809460c70816c to your computer and use it in GitHub Desktop.
Lots of repos? Try "git-pull-recursive" to run "git pull" on all subfolders with a .git folder inside.Thanks to http://snipplr.com/view/62314/perform-git-pull-on-subdirectory-recursive/
# For use in a shell:
# Download this file to /usr/local/bin/git-pull-recursive, then chmod 755 it to install git-pull-recursive
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