In short:
find . -name .git -execdir git pull -v ';'
You can also create the following script (for example update_src.sh):
#!/bin/sh
ROOT=$(git rev-parse --show-toplevel 2> /dev/null)
find "$ROOT" -name .git -type d -execdir git pull -v ';'
or create the following alias in the shell:
alias git-pull-all='find $(git rev-parse --show-toplevel 2> /dev/null) -name .git -type d -execdir git pull -v ";"'
or c ~/.gitconfig.
source
share