Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save enqtran/10e33674701967edd12c3cf224c835f8 to your computer and use it in GitHub Desktop.
Save enqtran/10e33674701967edd12c3cf224c835f8 to your computer and use it in GitHub Desktop.
GIT:
git config --global http.postBuffer 524288000
git fetch --unshallow
On Linux
Execute the following in the command line before executing the Git command:
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
On Windows
Execute the following in the command line before executing the Git command:
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
Disable the default 1GB limit of proxy_max_temp_file_size for Nginx. Value need to be set as zero to disable it
You can find more details here http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_max_temp_file_size.
@sohail-karim
Copy link

Respository didn't exists error on executing line 4 "git clone http://github.com/large-repository --depth 1"

@DorobantuRares
Copy link

How to I fix this for github desktop?

@jjingh03
Copy link

jjingh03 commented Apr 8, 2024

wo~nice bro

@enqtran
Copy link
Author

enqtran commented Apr 8, 2024

Respository didn't exists error on executing line 4 "git clone http://github.com/large-repository --depth 1"

The above is just an example of a large-sized repository

@enqtran
Copy link
Author

enqtran commented Apr 8, 2024

How to I fix this for github desktop?

You should use the git config commands in the Windows terminal.

@henrihallik
Copy link

henrihallik commented Aug 5, 2024

what finally worked for me was putting such settings to proper places in C:/Users/myuser/.gitconfig file:
[core]
compression = 0
packedGitLimit = 2096m
packedGitWindowSize = 2096m
[http]
postBuffer = 524288000
version = HTTP/1.1
sslVersion = tlsv1.2
[pack]
deltaCacheSize = 8096m
packSizeLimit = 2096m
windowMemory = 8096m

@AnnaKliuieva
Copy link

what finally worked for me was putting such settings to proper places in C:/Users/myuser/.gitconfig file: [core] compression = 0 packedGitLimit = 2096m packedGitWindowSize = 2096m [http] postBuffer = 524288000 version = HTTP/1.1 sslVersion = tlsv1.2 [pack] deltaCacheSize = 8096m packSizeLimit = 2096m windowMemory = 8096m

this one really help (Windows), thank you

@henrihallik
Copy link

what finally worked for me was putting such settings to proper places in C:/Users/myuser/.gitconfig file: [core] compression = 0 packedGitLimit = 2096m packedGitWindowSize = 2096m [http] postBuffer = 524288000 version = HTTP/1.1 sslVersion = tlsv1.2 [pack] deltaCacheSize = 8096m packSizeLimit = 2096m windowMemory = 8096m

this one really help (Windows), thank you

good that it helped u. it actually didnt work for me in the end but good that i didnt delete the comment then. it seemed like its working but still started to fail. what i noticed that the problem was only on my pc and not laptop. the internet to my pc is coming from a switch and then there is another switch between there but internet from laptop is coming from wireless router. so i just moved my pc to the other room where wireless router is. i think the cable to this router is coming from the large router but there is no additional router like pc connection. anyways i moved it there and intially tried to use a cable i had pc connected to the router still got the same error. then i used a shorter cable that already was as wirless router - and no issues with it. everything worked. so my conclusion is - it might just be bad cable issue.

@tinoguit
Copy link

tinoguit commented Nov 2, 2024

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment