In one of my GitHub repositories I have a .pdf file, which gets updated frequently. The problem is in th开发者_如何学Ce 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?
Try adding this to your .gitattributes
:
*.pdf binary
Then commit the attributes file.
精彩评论