I realised I accidentally edited a file I wasn't meant to a few commits ago. I want to revert this file to the original on master. To that affect I have tried:
git checkout master -- path/to/file.ext
git checkout origin/master -- path/to/file.ext
git checkout origin/master path/to/file.ext
git fetch && git checkout origin/master path/to/file.ext
But for each I've gotten the error "did not match any file(s) known to git." (this file does exist on master).
Would anyone know what I am doing wrong here?