Skip to content

Instantly share code, notes, and snippets.

@ghego
Last active December 31, 2015 18:39
Show Gist options
  • Select an option

  • Save ghego/8028570 to your computer and use it in GitHub Desktop.

Select an option

Save ghego/8028570 to your computer and use it in GitHub Desktop.
Git pull over all subdirs
# http://stackoverflow.com/questions/3497123/run-git-pull-over-all-subdirectories
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment