title: How to git reset --hard everything but 4 files
body: <p>Assuming nothing is staged, what's the recommended way to reset all the work you've done, except for files:</p>
  
  <pre><code>app/models/a.rb
  app/views/a/index.html.rb
  config/foo.rb
  config/bar.rb
  </code></pre>
  
  <p>Other dirty files exist in app/models/ and app/views/ that I don't want to keep.</p>