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
1.4m articles
1.4m replys
5 comments
57.0k users