When uploading code to GitHub using git, the following error occurs:
It is true that there is a large amount of code uploaded at one time, and then expand the post buffer according to the scheme provided on the Internet, but it has no effect here. Maybe the buffer is not large enough, HHH. You can try this plan first.
git config http.postBuffer 524288000
Then, if it has not been solved, try the following scheme. We can see that the error message refers to http/2, so the solution is to switch back to http1 upload. After uploading, switch back to http2.
$ git config --global http.version HTTP/1.1
After it push was ok and I have changed HTTP version to 2 again:
$ git config --global http.version HTTP/2
However, things were always so bad, so I tried to switch to SSH connection.
git remote set-url origin [email protected]:{username}/{repository name}.git
However
Looking at this line of red and yellow characters, I knew early in the morning that the file was too large, but the above methods didn’t work here. Fortunately, GIT LFS was mentioned in the error prompt. OK, Download git LFS.
For Mac users:
brew install git-lfs
Then, under the project directory, execute:
git lfs install
Then, use git LFS to track the format of the large file you want to upload. What I upload here is in Bin format, so execute:
git lfs track "*.bin"
Then make sure . Gitattributes tracked to
git add .gitattributes
Then upload it
Read More:
- Girl: RPC failed; HTTP 411 curl 22 the requested URL returned error: 411 length required:
- error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was
- Error: RPC failed; HTTP 504 curl 22 the requested URL returned error: 504 gateway time out
- failed to open stream: HTTP wrapper does not support writeable connections
- error: RPC failed; curl 56 OpenSSL SSL_ read: SSL_ ERROR_ Syscall, errno 10054 solution
- Failed to open stream: http request failed!
- php Error failed to open stream: HTTP request failed!
- git clone prompt error: RPC failed result=22, HTTP code = 404 problem
- Err:1 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu xxxxxx 404 Not Found [IP: 101.6.8.193 80]
- failed to lazily initialize a collection of role: ……, no session or session was closed
- Solution: DevTools failed to load SourceMap:… net::ERR_HTTP_RESPONSE_CODE_FAILURE problem
- Video JS can’t play the prompt( CODE:4 MEDIA_ ERR_ SRC_ NOT_ SUPPORTED) No compatible source was found for this video.
- Git did not exit cleanly (exit code 128)
- [Solved] IE Browser Upload Files Error: org.apache.tomcat.util.http.fileupload.FileUploadException: Stream ended unexpectedly
- Python’s importerror: DLL load failed: the specified module was not found and the problem was solved
- Eo ferror: compressed file ended before the end of stream marker was reached
- Ngixn exception net:: err_ HTTP2_ PROTOCOL_ ERROR 200
- [Solved] Logon failed, use ctrl+c to cancel basic credential prompt. unable to access
- RCurl error-fatal error: curl/curl.h: No such file or directory
- Record a front end error net:: err_ HTTP2_ PROTOCOL_ ERROR 200