title: Git - submodule, keep track of what submodule commit to use
body: <p>Where does the "super"-repo keep track of what commit each submodule is at?</p>
  
  <p>I dont see any of that info in .gitmodules</p>
  
  <p>What I want to achieve is if I tag the "super"-repo, with say <code>1.0-alpha</code>, then it will remember at what commit all the submodules was at that time, so when I checkout that tag later, I'll get the submodules at their correct commit position aswell.</p>
  
  <p>Is this possible without manually writing down the commit-position for each submodule?</p>
  
  <p>I now realize I can get that info later on by using:</p>
  
  <pre><code>git ls-tree &lt;tag&gt;
  </code></pre>
  
  <p>But then I'll have to go into each submodule and manually checkout that specific submodule at commit <code>abc1234</code>..</p>
  
  <p>/David</p>