SyntaxFix
Write A Post
Hire A Developer
Questions
git rm --cached file
should do what you want.
You can read more details at git help rm
git help rm