Git submodule status - how to show current branches in submodules
<p>Checking status of submodules in main repository with this command:</p>

<pre><code>git submodule status
</code></pre>

<p>produces output (without clear information about branches):</p>

<pre><code>491e03096e2234dab9a9533da714fb6eff5dcaa7 vendor/submodule1 (v1.51.0-560-g491e030)
8bccab48338219e73c3118ad71c8c98fbd32a4be vendor/submodule2 (v1.32.0-516-g8bccab4)
</code></pre>

<p><strong>Is it possible to check current branches on submodules without:</strong></p>

<pre><code>cd vendor/submodule1
git status
cd ../submodule2
git status
</code></pre>

<p><strong>?</strong></p>

<p>This command don't work:</p>

<pre><code>git submodule status -b
</code></pre>