Mastering Git submodules
Christophe Porteneuve
1.3K18

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

+submoduleTwo

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.