Git ignore 不是忽略文件夹

Git ignore is not ignoring folder

我有以下 .ignore 文件:

user_resources/*

项目如下所示:

然而,当我删除文件或将文件添加到文件夹时,它仍会推送文件夹的更改。

我完成了git rm --cached -r user_resources/

但遗憾的是它仍然不起作用:S

我做错了什么?

i have the following .ignore file:

应该是.gitignore

http://git-scm.com/docs/gitignore