Created
January 3, 2017 11:27
-
-
Save m3dwards/347ac1c3c59ea9194a2bf8ce4d419a90 to your computer and use it in GitHub Desktop.
Git checkout master and pull on all immediate directories within current directory.
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/sh | |
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git checkout master && echo && git pull && echo)' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment