Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Sourcetree, Unable to Push to Remote Repo

swelleye-brent
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

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!

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2024

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

swelleye-brent
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2024

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.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2024

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

Like swelleye-brent likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events