Git reset single file in feature branch to be the same as in master : <p>I'm trying to revert my changes in a <strong>single file</strong> in my feature branch and I want this file to be the same as in master.</p>

<p>I tried:</p>

<pre><code>git checkout -- filename
git checkout filename 
git checkout HEAD -- filename
</code></pre>

<p>It seems that none of these made any changes to my feature branch. Any suggestions? </p>
