【发布时间】:2013-09-03 14:12:11
【问题描述】:
我的.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,则应将其删除。
标签: git