]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-subup
.bashrc: Use __git_ps1() in $PS1
[dotfiles.git] / bin / git-subup
1 #!/bin/sh
2 # Checkout and update source for all registered submodules (.gitmodules)
3
4 cd $(git rev-parse --show-toplevel)
5 git submodule update --init --quiet
6 git submodule sync --quiet
7 git submodule foreach --quiet git checkout --quiet master
8 git submodule foreach git pull --prune