标签: git
我有.gitignore为
index.php protected/config/
我想只忽略root中的index.php,但是git也忽略了子文件夹中index.php的所有文件。 我如何修改.gitignore只忽略特定的index.php文件而不是所有名称为index.php的文件
答案 0 :(得分:13)
在/index.php
/index.php
.gitignore