Created
April 8, 2019 08:53
-
-
Save fhgbaguidi/886eb5d936eab9c66559495ec0327993 to your computer and use it in GitHub Desktop.
Exec git pull on all subdirectories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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