我的.gitignore文件被忽略,应该忽略的文件仍然可见。.gitignore不会忽略文件
[email protected] ~/workdir % git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: .htaccess
# modified: application/controllers/statistics.php
#
no changes added to commit (use "git add" and/or "git commit -a")
[email protected] ~/workdir % cat .gitignore
.htaccess
application/config/config.php
application/config/database.php
[email protected] ~/workdir %
这些文件在版本控制中,但我不想推动明智的更改。 git rm ...不是一个选项,因为这些文件应该在版本控制1(与文件中的其他设置)。我只是不想推动我对这些文件的更改。
删除您回购的东西,也许这篇文章可以帮助你http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring试试吧! – 2013-05-10 04:59:19