Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

git push -u origin main

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

send-pack: unexpected disconnect while reading sideband packet

fatal: the remote end hung up unexpectedly

Everything up-to-date

i tried,
git config http.postBuffer 524288000 but it didn't worked

like image 256
Mohit Sapat Avatar asked Mar 20 '26 02:03

Mohit Sapat


1 Answers

Follow few steps:

  1. Since Git LFS 2.2.0 you can use git lfs migrate command. In your case it would look this way:

git lfs migrate import --include="*.csv"

  1. When pushing a large amount of data (initial push of a big repository, change with very big file(s)) may require a higher http.postBuffer setting on your git client (not the server). Increase the Git buffer size to the largest individual file size of your repo:

git config --global http.postBuffer 524288000

  1. Push your code in origin/relevant branch:

git push -u origin main

After this, you should be able to push changes into origin branch.

like image 198
directtoking Avatar answered Mar 21 '26 18:03

directtoking



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!