私の問題は、この場合gitignoreが機能しないのはなぜですか?と同じではありません。.gitignoreも機能していません
files / conf.phpはすでに.gitignoreにありますが、gitステータスはまだ変更を示しています。なぜですか?
つまり、このファイルが.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")