git checkout filename

C++
git checkout README     # would normally discard uncommitted changes
                        # to the _file_ "README"
git checkout master     # would normally switch the working copy to
                        # the _branch_ "master"
git checkout -- master  # discard uncommitted changes to the _file_ "master"
Source

Also in C++: