Git ignore不会忽略文件夹

时间:2021-05-04 16:56:56

i have the following .ignore file:

我有以下.ignore文件:

user_resources/*

With the project looking like this:

该项目看起来像这样:

However when i either delete or add a file to the folder it still pushes the changes of the folder.

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

I have done git rm --cached -r user_resources/

我做过git rm --cached -r user_resources /

But sadly it still does not work :S

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

What am i doing wrong?

我究竟做错了什么?

1 个解决方案

#1


i have the following .ignore file:

我有以下.ignore文件:

It should be .gitignore

它应该是.gitignore

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

#1


i have the following .ignore file:

我有以下.ignore文件:

It should be .gitignore

它应该是.gitignore

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