When I try to take a clone of the git repository, I get error message
The remote end hung up unexpectedly while git cloning
I search a bit over it and found solution over here but I would like know what is the current allocation. So how do I check that?
From the git config man page, http. postBuffer is about: Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally.
If you own the repository, you can find the exact size by opening your Account Settings → Repositories (https://github.com/settings/repositories), and the repository size is displayed next to its designation. If you do not own the repository, you can fork it and then check the in the same place.
One possibility might be that you have large binary file(s) commited in the latest commit. git is not good at working with binary file. If commiting binary files was a mistake, you can refer to following answer for getting rid of binary file in commit.
Run this command in root folder of git repository ( by doing so you will search in ~/.gitconfig
and .git/config
files ):
git config --get http.postBuffer
If it shows nothing, then used default value ( 1 MiB from git config
documentation ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With