git out of memory errors – git repack
Occasionally when using git (particularly with large repositories) you might come across an error that looks a little bit like this:
[codesyntax lang=”bash” lines=”no” container=”none” blockstate=”expanded”]
remote: Counting objects: 506, done. remote: fatal: Out of memory, malloc failed (tried to allocate 342222798 bytes) remote: aborting due to possible repository corruption on the remote side. fatal: protocol error: bad pack header
[/codesyntax]