Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to push to master is returning with errors

Tags:

I'm very new at this but I'm trying to push to the master branch on my repository and the branch I am trying to push is just over 1GB. Source Tree comes back with the error below:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master  POST git-receive-pack (chunked) error: unable to rewind rpc post data - try increasing http.postBuffer fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054  Completed with errors, see above. 

What am I doing wrong and what does it mean?

like image 289
LaurenBull Avatar asked Jul 21 '16 06:07

LaurenBull


People also ask

How do I fix git push origin master?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

How do I fix error failed to push some refs to?

We can fix the error: failed to push some refs to [remote repo] error in Git using the git pull origin [branch] or git pull --rebase origin [branch] commands. In most cases, the latter fixes the error.

Why is git push failing?

failed to push some refs to errors are often caused when changes are not committed before pushing, issues with Git pre-push hook, incorrect branch name, or the local repository not being in sync with the Git repository.

Which error would you get if you try to push master branch changes to a remote repository?

The error message error: refusing to update checked out branch: refs/heads/master is emitted by the remote repository and it means you're trying to push code to remote non-bare repository that has different code currently checked out in the working directory.


1 Answers

try modify the postBuffer size of git:

git config --global http.postBuffer 2097152000 git config --global https.postBuffer 2097152000 

then try push again. (2097152000byte == 2000mb)

like image 144
Loyea Avatar answered Oct 29 '22 16:10

Loyea