Skip to content

Instantly share code, notes, and snippets.

@RoToRx88
Last active November 5, 2019 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoToRx88/48aa1dbbd7fba1b665896598c94c517d to your computer and use it in GitHub Desktop.
Save RoToRx88/48aa1dbbd7fba1b665896598c94c517d to your computer and use it in GitHub Desktop.
Execute arbitrary command into submodule
#!/bin/bash
git submodule foreach --recursive --quiet pwd | xargs -P8 -I{} zsh -c "cd {} && $*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment