Skip to content

Instantly share code, notes, and snippets.

@ahmadnassri
Created March 22, 2014 03:19
Show Gist options
  • Save ahmadnassri/9700594 to your computer and use it in GitHub Desktop.
Save ahmadnassri/9700594 to your computer and use it in GitHub Desktop.
Update all git repositories in a directory
find . -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