我.gitignore
文件如下:不能添加文件夹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
#
因此,如何从永远git仓库排除整个Index
文件夹?
如果添加了Index/LOG,则应该将其删除。 –