Reputation: 1623
Is Git effective if my files are huge in terms of Lines of Code and in size? By "huge", I mean text files of about a gigabyte.
Upvotes: 1
Views: 63
Reputation: 16066
If it consists of "lines of code", it will be probably be fine. You'll usually only run into problems if you store large binary files.
Note that git will still use deltas for binary files within a pack, but when pushing/pulling the pack that gets sent over the network must be self-contained. So if you have a 10GB file and edit one byte, pushing or pulling will require sending 10GB of data. But if you edit one byte twice, it's still only 10GB of data.
While git-annex
and git-bigfiles
(which I hadn't heard of until @belwood mentioned it) exist, you're better off asking "do I really need to store huge binary files in my repository?" and see if you can instead store, say, a script that can be used to generate a large binary file from a number of smaller, hopefully textual, pieces.
Upvotes: 1