Forced cache deletion

Can I find out which command in the terminal forcibly removes the cache from GIT?

According to what I know for git removal, git rm --capped thefilename

But now I get an error

error: "tutorial.h" delivered content other than the file and HEAD (use -f to force removal)

So, can I know how can I remove this?

+6
source share
1 answer
git rm --cached -f thefilename 
+17
source