Skip to content

Instantly share code, notes, and snippets.

@bwv988
Last active January 3, 2017 11:48
Show Gist options
  • Save bwv988/f01b7553941ec5192b8f2dd9eeb24cc3 to your computer and use it in GitHub Desktop.
Save bwv988/f01b7553941ec5192b8f2dd9eeb24cc3 to your computer and use it in GitHub Desktop.
Recursive git pull
find . -maxdepth 1 -type d -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
@bwv988
Copy link
Author

bwv988 commented Jan 3, 2017

Small gist to recursively update git repositories under the current working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment