git-checkout-file
$ npm install -g https://github.com/slammayjammay/git-checkout-file
I like to alias this with "goof"
# in your .bash_profile
alias goof="git-checkout-file"
Usage
Give a list of substrings to match files to. Matches are made case-insensitively. If any of them have uncommitted changes, those changes will be lost forever (dangerous!).
$ goof html # kills all changes in html files, for example
$ goof readme # kills all changes in the README
If you really messed up your repo and all uncommitted changes should be removed forever, you can do:
$ goof . # I personally use this all the time.