Created
January 28, 2014 19:54
-
-
Save fentie/8674985 to your computer and use it in GitHub Desktop.
Simple bash script to run git pull on first level of child directories
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
function gupdate() { | |
for i in */.git; | |
do ( cd "${i/\/.*/}"; git pull ); | |
done # Pull updates from all git repos below your CWD. single level only | |
} | |
#credit for this goes to @climagic, who got it from someone else, but I no longer have the original link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment