title: Auto-committing git submodule hash in super-project
body: <p>When you commit in a git submodule, you need to go up to the super-project to do a second commit, which is the new hash of the submodule.</p>
  
  <p>This is incredibly annoying, easy to forget and can cause all manner of problems if you don't do it.</p>
  
  <p>What I want to do is:</p>
  
  <ol>
  <li>Commit the changes in my submodule</li>
  <li>Have the hash committed automatically in the super-project</li>
  <li>Have both the submodule and the super-project pushed to their remote-origin ('git push')</li>
  </ol>
  
  <p>What's the best way to figure out if you're in a submodule, where the super-project is, etc and automate this?</p>
  
  <p>Maybe some kind of post-commit hook in the submodule?</p>