Created
October 8, 2015 16:07
-
-
Save ncancelliere/790b1a9eb2d08590815d to your computer and use it in GitHub Desktop.
Git Update All Repos Below CWD
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
# Pull updates from all git repos below your CWD. single level only | |
function gupdate() { | |
for i in */.git; | |
do ( cd "${i/\/.*/}"; git pull --ff-only); | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment