Using Github Constraint

Not sure if this is the right forum, but I am looking at hosting my site on cloudflare / github. Is there a repo size limit? if I hit that size limit for the repo, could I just create a secondary repo? What are the limitations of this? Anyone with large sites have any experience with this?

It would be better to ask in Cloudflare or GitHub directly in this case.

If you had used your favorite search engine, you would have found the answer in less than 5 minutes.

Regarding GitHub Pages, the repository is advised to be less than 1GB in size, and the ToS does not allow it to use your site as a file server.

Again, if you search online you can get all the limitations in less than 5 minutes.

How “large” your site is? Because some companies use GitHub pages to publish their blogs or their docs, so unless you have a big company too, it would be very unlikely you’ll run into problems regarding size limit.

You’re being kinda combative. There is a lot of contradicting information spread over several years and contradicting information for the same years even recently. I was asking for experience. You’ve basically told me to “read the docs “ which I have. I’ve RTFM, I work as an application engineer, I’m quite used to looking up information. I appreciate your time nonetheless


Do you mean Cloudflare Pages? The only size limit there appears to be 20K files. ( As for GitHub itself, you’re probably more concerned about file-size limitations (About large files on GitHub - GitHub Docs).

Edit: That same GitHub docs page says:

GitHub limits the size of files allowed in repositories. If you attempt to add or update a file that is larger than 50 MB, you will receive a warning from Git. … GitHub blocks pushes that exceed 100 MB.
To track files beyond this limit, you must use Git Large File Storage (Git LFS).

We recommend repositories remain small, ideally less than 1 GB, and less than 5 GB is strongly recommended.


Cloudflare pages - limit is 20k files and each individual file should not exceed 25MB

GitHub - They recommend 1GB-5GB repository sizes for faster cloning. Per file size shouldn’t exceed 100MB. Hard limit is about 100GB.

You can reduce the size of the site by hosting the images externally if they are too many, such as an S3 bucket or Cloudinary.

1 Like

Thank you guys for all this. It makes sense is was very helpful! Thank you!