我.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,則應該將其刪除。 –