我的问题是不一样的Why doesn't gitignore work in this case?也不.gitignore is not working为什么.gitignore无效?
文件/ conf.php已经在的.gitignore,但git的状态仍显示它的修改,为什么?
我的意思是,如果它是的.gitignore这个文件不应该被跟踪......
cat .gitignore
files/conf.php
[[email protected] 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")
如果该文件已在存储库中进行跟踪,我认为它仍然显示为已更改,无论是否存在于.gitignore中 –
您是否已在跟踪'conf.php'?准确地说是 –