Skip to content

Instantly share code, notes, and snippets.

@frhd
Created February 20, 2014 12:08
Show Gist options
  • Save frhd/9112125 to your computer and use it in GitHub Desktop.
Save frhd/9112125 to your computer and use it in GitHub Desktop.
git pull to all git directories
find . -mindepth 1 -maxdepth 1 -type d -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