Is there a way to force git to add a file despite the .gitignore file?
git
.gitignore
See man git-add:
man git-add
-f, --force Allow adding otherwise ignored files.
So run this
git add --force my/ignore/file.foo
2.1m questions
2.1m answers
60 comments
57.0k users