- git rm fileName
Removes a file from the INDEX and the working tree. The files have to be identical
to the tip of the branch.
- git rm -f fileName
Overrides the up-to-date check.
- git rm ––cached fileName
Removes the file only from the INDEX.
There is no git command to remove a file from the working tree only.