error: unable to rewind rpc post data
Today I got a very interesting error while pushing my commits to the remote repository.
Username for ‘https://gitlab.com': myusername Password for ‘https://myusername@gitlab.com': Counting objects: 111, done. Delta compression using up to 8 threads. Compressing objects: 100% (111/111), done. Writing objects: 100% (111/111), 4.34 MiB | 411.00 KiB/s, done. Total 111 (delta 18), reused 0 (delta 0) error: unable to rewind rpc post data — try increasing http.postBuffer error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received. fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly
Everything up-to-date
The Solution
Now it was time to find a solution so that I can push my code-
The First Clue
This was the very first time I encountered this error. Without hitting my brain too much, I started reading the error log carefully and thanks to `GIT error log` I immediately got my first clue from error-log while going through this line `try increasing http.postBuffer`.
Google Help
Since now I got a clue that I have to try increasing `http.postBuffer` and I was not knowing how to do this. I took the help of Google Search. I typed `how to increase http.postBuffer` in search box and boom, here was my option. I selected to go with this link from available options.
The final Step
Luckily I got my solution in very first attempt. Now It was time to increase `http.postBuffer`. It was a very simple command-
git config — global http.postBuffer 157286400
One Extra Step
I’ll be always very curious while executing a new command. I realized that the command contains http.postBuffer. I decided to look for Is there anything like https.postBuffer and I was correct according to this link. Finally, I executed one more command with little modification in the above command to avoid any future possibility of the same error-
git config — global http.postBuffer 157286400
Cheers!!! finally, I solved this problem.