title: How do I revert my changes to a git submodule?
body: <p>I have a git submodule (RestKit) which I have added to my repo.</p>
  
  <p>I accidentally changed some files in there and I'd like to go back to the source version. In order to do that, I tried to run </p>
  
  <pre><code>Mac:app-ios user$ git submodule update RestKit
  </code></pre>
  
  <p>But as you can see here, this did not work as it is still "modified content":</p>
  
  <pre><code>Mac:app-ios user$ git status
  ...
  #   modified:   RestKit (modified content)
  </code></pre>
  
  <p>Even </p>
  
  <pre><code>Mac:app-ios user$ git submodule update -f RestKit 
  </code></pre>
  
  <p>doesn't revert locally modified files.<br>
  How do I reset the content of that submodule?</p>