有没有办法强制git尽管添加文件.gitignore file?
git
.gitignore
See man git-add:
-f, --force Allow adding otherwise ignored files.
所以运行这个
git add --force my/ignore/file.foo