Today I’ve encountered the problem adding files within a LaTeX project. All generated PDF files are ignored in the project
I had to add two PDF files with graphics and didn’t want to change my ingnoring rules:
-f switch forces Git to add ignored files. Use it!