title: Remove deleted files from a commit in git repo
body: <p>I have a commit in gerrit with three files in which there are two deleted files, But i don't want to merge those deleted changes. I have tried all sort of things with resetting those files, but as i am just checking out the change from gerrit, It doesn't seems to actually do anything.</p>
  
  <p>This i have found on lot of places:</p>
  
  <pre><code>git add -u
  git reset HEAD path/to/file
  git commit
  </code></pre>
  
  <p>but didn't work. Does anyone know a way to accomplish this.</p>