I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous versio
And to revert to last committed version, which is most frequently needed, you can use this simpler command.
git checkout HEAD file/to/restore