SyntaxFix
Write A Post
Hire A Developer
Questions
See man git-add:
man git-add
-f, --force Allow adding otherwise ignored files.
So run this
git add --force my/ignore/file.foo