title: with git submodules, can I always get branch/HEAD when cloning?
body: <p>With git 1.8.2+ you can track branches as described in <a href="https://stackoverflow.com/a/9189815/1668622">this answer</a>. But compared to svn-externals without revision you seem to have to manually update your submodules when you intend to always build with latest revision of your submodules:</p>
  
  <pre><code>git clone &lt;URL/TO/MY/COMPOSITE/PROJECT&gt; --branch develop --recursive
  git submodule update --remote
  </code></pre>
  
  <p>Is there a way to always have the latest revision of submodules cloned when tracking branches?</p>
  
  <p><a href="https://stackoverflow.com/a/10443643/1668622">This</a> answer suggests it would be bad and dangerous to not explicitly specify revisions for submodules. In my opinion this is true for most cases but there are scenarios where you want to track development-branches of your submodules. In such a case it's just extra work to always <code>pull</code>/<code>update</code>/<code>commit</code> when you want to track changes on your submodules.</p>