Has anyone come across this error?
git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/staging:refs/heads/staging
Pushing to https://bitbucket.org/xx/xx.git
POST git-receive-pack (chunked)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
Completed with errors, see above
I'm able to pull from remote, but unable to push to it.
I also created a new branch and test commit, unable to push that as well.
I'd greatly appreciate any help and suggestions, thank you!
Hi and welcome to the community!
How large are the files you are trying to push? I've seen this error occurs mainly with large pushes.
You can try increasing the size of the buffer used to POST data by executing the following command on a terminal application:
git config --global http.postBuffer 157286400
Then, attempt to push again. This will increase the size of the buffer to 150 MB.
Are you able to push then?
Kind regards,
Theodora
Hi Theodora, many thanks for your reply and help. That indeed fixed the issue!
It's strange because we've never had a limit on file size. We did recently upgrade our AWS instances, so perhaps the new instances had a limit.
Anyway, thanks again for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for the update!
I believe the default size of that buffer in Git is 1 MB, which may not be enough for larger pushes.
It's good to hear that this worked, please feel free to reach out if you ever need anything else!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.