I’m getting a warning about suboptimal pack - out of memory when pushing my repo in git:
Counting objects: 103, done.
Delta compression using up to 2 threads.
warning: suboptimal pack - out of memory
Compressing objects: 100% (100/100), done.
...
As you can see, the repo is ultimately compressed, and after this the system pushes the repo successfully. So it appears to be fine, although it is packed suboptimal. My question is: is there any potential damage to the repo, or is it just a bit larger?
This is a fairly large repo so that is what probably causes this error, but as long as my files are not damaged, then I have no problem with this.
No. Your repository is not damaged. The warning is thrown when git runs out of memory trying to generate a delta index for a particular blob. This alone isn’t enough to harm your repository or crash the push process (which is why it was changed from an error to a warning in the first place… more than five years ago):
Solutions and workarounds are listed in this answer and this answer.