Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 8 lines (7 sloc) 262 Bytes
#!/bin/sh
#
# Finds all Git clones in the given directories and
# upgrades them to the latest origin/master branch.
#
# Written in 2011 by Suraj N. Kurapati <https://github.com/sunaku>
find -L "$@" -name '*.git' -exec sh -xc 'cd "${0%/*}" && git pull' '{}' ';'