我的问题与为什么 gitignore 在这种情况下不起作用?.gitignore也不起作用
files/conf.php 已经在 .gitignore 中,但是 git status 仍然显示它的修改,为什么?
我的意思是,如果该文件位于 .gitignore 中,则不应跟踪它...
cat .gitignore
files/conf.php
[root@home blogmi]# git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: files/conf.php
#
no changes added to commit (use "git add" and/or "git commit -a")