I'm thinking to use git for my latex projects, and I'm wondering whether I should add the pdf output to the repositories, or leave it out. It would be sort of convenient to have it in there, but I'm worried that it would quickly use up lots of space, assuming that git basically will have to save each version in its entirety, as they are binary, or is there a reasonable way of having only small diffs?
[Tex/LaTex] How expensive is it to add pdfs in git?
git
Best Answer
Don't. as a general rule of thumb, you should not commit generated files but only corresponding sources.
Check for example this source from Michael Ernst for details (quote):