1

I have mp4, ogg, and webm files in my project, and when I try to push it, it tells me that the files are too large to be pushed.

What would be the best approach to pushing these files along with my project at once?

Thank you

  • Possible duplicate of [Managing large binary files with git](http://stackoverflow.com/questions/540535/managing-large-binary-files-with-git) – gabra Sep 12 '16 at 03:35
  • You might want to avoid pushing large binary files to GitHub, as Git does not handle binaries very well. – Tim Biegeleisen Sep 12 '16 at 03:37
  • @TimBiegeleisen is there a way to have them compressed in my project, yet still be able to use them in the code, e.g with src=""? –  Sep 12 '16 at 04:09
  • You can certainly version compressed MP4 files (or any file), but I think you would need to uncompress them to use them. – Tim Biegeleisen Sep 12 '16 at 04:46
  • @JohnBana "is there a way to have them compressed?" Compressing video files usually doesn't (significantly) reduce their size, since all video formats are internally compressed. – Leon Sep 12 '16 at 06:59

1 Answers1

0

You should take a look at git Large File Storage. GitHub already supports it.

gabra
  • 9,484
  • 4
  • 29
  • 45
  • is there a way to have them compressed in my project, yet still be able to use them in the code, e.g with src=""? –  Sep 12 '16 at 04:07
  • @JohnBana : You can create a `.tar` file and pushed it to git. And ignore it's extracted form. Though it's a very bad idea. – Shravan40 Sep 12 '16 at 04:51