title: Rebasing a submodule
body: <p>I have a repository A, having repository B as a submodule.
  In an ideal world this should never happen, but let's say, that for some reason, I want to do an interactive rebase in repository B.  </p>
  
  <p>If I do so, and push the new commits to the remote (using <code>git push origin master --force</code>), next time I will clone repository A, and call:</p>
  
  <pre><code>git submodule update --init
  </code></pre>
  
  <p>this command will fail, because the history of B was rewritten, and git will not be able to find that specific commit the submodule B was initially added to A with.</p>
  
  <p>What can I do?</p>
  
  <p>Remove the submodule and add it again? Is there a better solution?</p>
  
  <p>Thanks!</p>