I\'m in my local computer\'s master branch of a cloned master-branch of a repo from a remote server.
I updated a file, and I want to revert back to the original version
I've faced same problem and came across to this thread but my problem was with upstream. Below git command worked for me.
upstream
git checkout {remoteName}/{branch} -- {../path/file.js}
git checkout upstream/develop -- public/js/index.js