 <p>I think even with <code>--ignore-unmatch</code> you still need the <code>--</code> disambiguator. Like:</p> <pre><code>git rm --cached --ignore-unmatch -- Rakefile ^^-this two dashes here </code></pre>