How to remove a file from git?

Hello, please tell me, work through git in phpstorm. Need to add single file in .gitognore that he has ceased to be tracked. Added it in .prescribed gitignore and git rm --cached [file], but he continues to be monitored. What should I do?
July 9th 19 at 11:28
2 answers
July 9th 19 at 11:30
Solution
: please) - kavon.Murphy commented on July 9th 19 at 11:36
Thank you! - rupert_Weissnat79 commented on July 9th 19 at 11:33
July 9th 19 at 11:32
after git rm
git commit-a-m "lalala"

Find more questions by tags Git