Binary file showing as modified after git checkout
<p>For some reason, after cloning a repository and changing branch I had one <code>jar</code> file marked as modified (without being modified) and I can't seem to un-modify the file (which prevents merging branches.</p>

<pre><code>PS D:\src\expm&gt; git status
On branch epic-my-wallet
Your branch is up-to-date with 'origin/feature-01'.
Changes not staged for commit:
(use "git add &lt;file&gt;..." to update what will be committed)
(use "git checkout -- &lt;file&gt;..." to discard changes in working directory)

    modified:   Test/Selenium/selenese-runner.jar

no changes added to commit (use "git add" and/or "git commit -a")
</code></pre>

<p>I tried to undo with the checkout command</p>

<pre><code>PS D:\src\expm&gt; git checkout -- .
</code></pre>

<p><code>git status</code> output the same exact message as previously.</p>

<p>I tried to reset it from <code>HEAD</code> with </p>

<pre><code>PS D:\src\expm&gt; git checkout -f HEAD
Your branch is up-to-date with 'origin/feature-01'.
</code></pre>

<p>Please note that jar files are flagged as handled by LFS in the <code>.gitattributes</code> file</p>

<pre><code>*.jar filter=lfs diff=lfs merge=lfs -text
</code></pre>

<p>Not quite sure on the next step here. The file has not been modified since its commit months ago.</p>

<p><strong>edit</strong><br>
I should add that today we tried to reset the cache with <code>git rm . -r --cached</code> and removed the LFS cache as well (physically remove the <code>.git/lfs</code> folder) and re-download the files with <code>git reset --hard</code>.</p>