我的.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 存储库中排除整个文件夹呢?