Avoid compressing .pdf for transfer #22062
-
I’ve added a bunch of .pdf files to my repo. It’s slow to upload and, presumably, download. I assume this is in part due to git trying to compress the already compressed .pdf files.
Thanks, Mike |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @mikegilchrist! 👋 Welcome to the Community! Git and GitHub are optimized to provide version control and code collaboration predominantly on text files, which means each push of data to our servers triggers computation on our end to apply necessary metadata and structure things efficiently for that purpose. That means there are many use cases, such as backups of non-text files, or database dumps, that are unsuitable for Git, and an inefficient strain on our infrastructure. You can read more about this here: https://help.github.com/en/github/managing-large-files/what-is-my-disk-quota To answer your questions:
I hope that explains things! |
Beta Was this translation helpful? Give feedback.
-
Thanks; that’s helpful. Note I am not storing any big binary files, I am storing many, many small binary files. Regardless, I will stop worrying about this issue. |
Beta Was this translation helpful? Give feedback.
Hi @mikegilchrist! 👋 Welcome to the Community!
Git and GitHub are optimized to provide version control and code collaboration predominantly on text files, which means each push of data to our servers triggers computation on our end to apply necessary metadata and structure things efficiently for that purpose.
That means there are many use cases, such as backups of non-text files, or database dumps, that are unsuitable for Git, and an inefficient strain on our infrastructure.
You can read more about this here:
https://help.github.com/en/github/managing-large-files/what-is-my-disk-quota
To answer your questions:
Git isn’t trying to compress your .pdf files in the same way as if you were u…