title: Telling git its ok to remove untracked files
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/61212/how-do-you-remove-untracked-files-from-your-git-working-copy">How do you remove untracked files from your git working copy?</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible to tell git to remove untracked files? Mainly something that is similar to a reset?</p>
  
  <p>example:</p>
  
  <pre><code>git checkout -- index.php &lt;-- revert my file
  git checkout -- master &lt;-- this would revert the entire repo back to the last commit on master, removing (deleting) any and all untracked files as well as reverting committed ones.
  </code></pre>
  
  <p>I know this is trivial to do on the shell. But I'd like to know if this can be done in Git?</p>