/git-deep

GIT can make your repo more modular with `git submodule` (as shown in this repo). Here is a utility to send recursive commands through the submodules (like `git submodule foreach` but better)

Primary LanguageJavaScript

Git Deep

Runs command on submodule (children) before running on parent git repo

yarn global add git-deep

Examples

# Grunt commands
$ git-deep --parallel 'grunt watch'
$ git-deep 'grunt build'

# Git commands
$ git-deep 'git add .'
$ git-deep 'git commit -n -am "Added new features"'
$ git-deep 'git push'

# Or any other command
$ git-deep 'echo "foo bar"'

Optional Arguments

  • -c, --childrenOnly: Run command on children only
  • -p, --parallel: Run commands in parallel