I have
~$itial Problem Description.docx
rm --cached ~$itial Problem Description.docx
'~ Problem Description.docx'
git rm --cached
.gitignore
The problem is the shell is interpreting $itial
as a (empty) environment variable because of the $
. You can prevent the shell from parsing it by using single quotes:
$ git rm '~$itial Problem Description.docx'