Mastering Git submodules
Christophe Porteneuve

I have a question regarding submodules, if we have the following :


If i want to run ‘git branch’

I can do ‘git submodule foreach git branch’

This will run on both submodules, what if I wanted to run it on only 1 submodule?

WITHOUT using CD command or writing ‘if $path’

Like what you read? Give Mohamad Qaddura a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.