Skip to content

Instantly share code, notes, and snippets.

@devp619
Forked from jonpugh/git-pull-recursive.rb
Created May 18, 2020 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devp619/7bc6160c8710f40cc286d807b3d9a35a to your computer and use it in GitHub Desktop.
Save devp619/7bc6160c8710f40cc286d807b3d9a35a 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