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 | |
# | |
# upstream: git://gist.github.com/1019125.git | |
VERBOSITY=0 | |
LOCK="" | |
CR=" | |
" | |
error() { echo "$@" 1>&2; } |
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/bash | |
# find all .git directories and exec "git pull" on the parent. | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \; |