Skip to content

Instantly share code, notes, and snippets.

@fhgbaguidi
Created April 8, 2019 08:53
Show Gist options
  • Save fhgbaguidi/886eb5d936eab9c66559495ec0327993 to your computer and use it in GitHub Desktop.
Save fhgbaguidi/886eb5d936eab9c66559495ec0327993 to your computer and use it in GitHub Desktop.
Exec git pull on all subdirectories
#bin/bash
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
#https://stackoverflow.com/questions/3497123/run-git-pull-over-all-subdirectories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment