I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want
filename.orig
You can also use:
git reset HEAD file/path