I’m using git to manage a relatively large set of binary files. It’s a mix of a few thousand eps, png, jpg, gif, pdf files and a few small text files totaling over 53GB. I find that git is kind of slow. Sure, lots of folks say “don’t use git” and that’s fine.
I’ve ready about using .gitattributes or .git/info/attributes to set git to not do a delta on these files with syntax like:
*.jpg -delta
However, I haven’t read exactly where that needs to go. Two questions:
- Add that to the
.gitattributesfile that is checked into the repository? - Would it help to have it in the
.git/info/attributes/in my central repository?
My experience is that performance is pretty slow for both new clones of this repository AND for commits of many files and/or large files.
According to
gitattributes(5):I.e., your option (1).