If it's for a specific file which is not staged yet, then doing only git checkout filename.extension just works!
git checkout filename.extension