mzouink
mzouink

Reputation: 517

Speed up git add for binary files - disable compression

I am working on a new data structure that is version friendly. So I have a git repository inside a Zarr file. I don't have any push or upload data. just local version control.

currently, the git add . command is taking a lot of time. and git lfs is not the right solution to the problem because the data size replicates a lot. The question: How to disable compression for git add . then I can do it using git gc enter image description here

Upvotes: 1

Views: 973

Answers (1)

Mark Adler
Mark Adler

Reputation: 112209

git config core.compression 0. Though I would recommend git config core.compression 1 instead. It will be very fast, and still give decent compression.

Upvotes: 3

Related Questions