I currently have three modified files in my working directory. However I want one of them to be reset to the HEAD status.
In SVN I'd use
svn revert <filename>
svn update <filename>
if needed) but in git I can use
git reset --hard
. However this command cannot operate on a single file.
Is there any way in git to discard a single file's changes and overwrite it with a fresh HEAD copy?