Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github .pdf diffs

Tags:

git

github

pdf

In one of my GitHub repositories I have a .pdf file, which gets updated frequently. The problem is in the GitHub commits page, which shows the diff for this pdf. As pdfs are mostly binary the diff is long and so the page works very slowly and is useless for a quick peek as to what has changed between commits.

Is there a way to convince GitHub to hide the diffs for a certain file type or something along those lines?

like image 809
HairyFotr Avatar asked Jun 07 '11 19:06

HairyFotr


People also ask

Does Diff work on PDF?

DiffPDF is a small but useful tool that compares two PDF files and let you know the differences. This easy to use tool is free for Linux.

Is DIFF PDF free?

DiffPDF is a simple but effective free Windows utility that identifies changes and differences between PDF files.

Can GitHub display PDFs?

Rendering PDF documentsGitHub supports rendering of PDF documents. Currently, links within PDFs are ignored.


1 Answers

Try adding this to your .gitattributes:

*.pdf binary

Then commit the attributes file.

like image 152
Veeti Avatar answered Sep 25 '22 13:09

Veeti