clone failed using https
$ git clone https://github.com/Homebrew/homebrew-core.git
Cloning into 'homebrew-core'...
fatal: Out of memory, malloc failed (tried to allocate 52428800000000000 bytes)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
success using ssh
$ git clone git@github.com:Homebrew/homebrew-core.git
Cloning into 'homebrew-core'...
remote: Enumerating objects: 1121549, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (27/27), done.
^Cfetch-pack: unexpected disconnect while reading sideband packet
git version
git version 2.30.1 (Apple Git-130)
sys version
Darwin MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64