Possible Duplicate:
How do you remove untracked files from your git working copy?
Is it possible to tell git to remove untracked files? Mainly something that is similar to a reset?
example:
git checkout -- index.php <-- revert my file
git checkout -- master <-- 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.
I know this is trivial to do on the shell. But I'd like to know if this can be done in Git?