Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Handle Large Files in GitHub And Still Allow For AppVeyor Builds

Tags:

GitHub has a limit on how large a file can be. I have an open source GitHub project that has a several 120mb files that will be required for unit testing... How do I store these files so that AppVeyor and other developers can access these files?

like image 771
Daryl Avatar asked Jul 29 '16 21:07

Daryl


People also ask

What if a file is too big for GitHub?

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. The changes will still successfully push to your repository, but you can consider removing the commit to minimize performance impact.

How do I upload more than 25 MB in GitHub?

Files that you add to a repository via a browser are limited to 25 MB per file. You can add larger files, up to 100 MB each, via the command line. For more information, see "Adding a file to a repository using the command line." To add files larger than 100 MB, you must use Git Large File Storage.


1 Answers

Depending on the kind of volumes actually manipulated, you could consider GitHub LFS (available on GitHub.com)

There are storage limits and bandwidth quota though, which might trigger some billing plans for Git Large File Storage.

Note: issue 784 I mentioned in the comments now (August 12th, 2016) refers (by the OP) to AppVeyor "How to download file", following the comment:

I'm guessing using on of those approaches to download the git-lfs.exe would work just fine.

I'm not aware of not being able to use git lfs in an appveyor itself.
I would imagine all you REALLY need to do is:

  • Download the git-lfs.exe file and unzip (I'm guessing something like this would help with that, I'm not a powershell genius)
  • Put git-lfs.exe in your path (dealers choice on how)
  • Run git lfs install.

And then you can use git lfs to do everything you need (git clone, git fetch, etc...)

like image 196
VonC Avatar answered Sep 28 '22 02:09

VonC