I am trying to push my code from an old repository to a new repository as my old repository seems to be currupted somehow
getting following error:
Counting objects: 19815, done.
Compressing objects: 100% (5264/5264), done.
Writing objects: 100% (19815/19815), 44.91 MiB | 134.87 MiB/s, done.
Total 19815 (delta 14641), reused 19405 (delta 14283)
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Bad Request
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
I tried git config http.postBuffer 524288000
but it did not help I even tried to do git push --force origin
and git push --all
but am receiving same error
I faced the same error.
I had a task to move from one server to another (TFS to Azure), all the repositories, except one, were easily moved using THIS procedure.
One repository, when trying to make a PUSH, threw out such an error.
There are about 15 branches in this repository.
I decided to transfer one branch at a time, using git push url://to/new/repository.git branch-to-move:new-branch-name
.
When I applied this option to the master branch, I got the same error.
Then I transferred all other branches (there were no problems with them).
After that, the master branch migrated without problems.