I know there are many questions on how to ignore directories, and I usually haven t had any problem until now, but now I m stuck with something I don t understand.
我的名录结构如下:
/src
/war
com.example.MyProject/
WEB-INF/
classes/
deploy/
lib/
我想忽略以下目录的内容:states/
,deploy/
和com.example.Myproject/
。
*.log
war/WEB-INF/classes/
war/WEB-INF/deploy/
com.example.MyProject/
Files under com.example.MyProject/
are automatically generated, and git ignores all of them except for a file named com.example.MyProject.nocache.js
. In fact, when I do git status
I get:
# On branch myBranch
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: .gitignore
# ......
# modified: war/com.example.MyProject/com.example.MyProject.nocache.js
为什么该名录拒绝忽略该单一档案? 我做了什么错误?