我的.gitignore文件如下:
$ cat .gitignore
Index/
Index/LOG
我将.gitignore文件添加到回购、提交甚至推送。但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: Index/LOG
#
那么如何Index永远从 git 存储库中排除整个文件夹呢?