Created
May 16, 2019 04:49
-
-
Save MnHung/1801679d47545f9a28dd77f92c39ce12 to your computer and use it in GitHub Desktop.
Pull all git directories
This file contains hidden or 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
# for all directories in current path, do 'git pull' | |
find . -type d -mindepth 1 -maxdepth 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