Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check post buffer size before clone git repository?

Tags:

git

github

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?

like image 952
Virat Gaywala - CSM Avatar asked Aug 21 '15 09:08

Virat Gaywala - CSM


People also ask

What is post buffer in git?

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.

How do I find the size of my git repository?

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.

Why is git pushing too long?

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.


1 Answers

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 ).

like image 189
Roman Zaitsev Avatar answered Sep 19 '22 01:09

Roman Zaitsev