I understand that a .gitignore file cloaks specified files from Git\'s version control. I have a project (LaTeX) that generates lots of extra files (.auth, .dvi, .pdf, logs,
Nothing worked for me so far because I was trying to add one jar from lib.
This did not worked:
build/* !build/libs/* !build/libs/ !build/libs/myjarfile.jar
This worked:
build/* !build/libs