Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot push to remote git repository

So I have been having troubles pushing my most recent commits to a remote repository that I have set up on Bitbucket.

I am originally using Xcode, and have asked this question and was recommended to use terminal to push instead of Xcode.

Now, I tried terminal but that did not solve the problem. But it did give me a more detailed error message when I try git push

Neils-iMac:ProjectName Neil$ git push
Password: 

Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (38/38), done.
Writing objects: 100% (39/39), 975.78 KiB, done.
Total 39 (delta 31), reused 0 (delta 0)
error: RPC failed; result=55, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: expected ok/error, helper said '2004\??? ?&?ЇҶ-9?u?r?m?v?ǣ3Ƅ:??Eƒ?=?&?"d?+??
   *^?eA??/3cv????ʞe??f???????
                              ?(??`}D???5???^:T??PxP????%?338?]??F?}???Gf?g??[??*??}zƈ1X'

Neils-iMac:ProjectName Neil$ 
Neils-iMac:ProjectName Neil$ 

I am new to these remote repositories, and had everything working fine on Xcode, so if you recommend for me to do something in terminal it would help if you described how to do so.

See my previous question for a bit more detail.


EDIT: This is the result of;

git status:

# On branch master
# Your branch is ahead of 'origin/master' by 5 commits.
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   CrunchCalculator.xcodeproj/project.xcworkspace/
#   CrunchCalculator.xcodeproj/xcuserdata/
nothing added to commit but untracked files present (use "git add" to track)

git remote show origin:

HEAD branch: master
  Remote branch:
    master tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (fast-forwardable)
like image 284
Neil Avatar asked Aug 15 '12 11:08

Neil


People also ask

Why is my git push not working?

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 push to a remote git repository?

To push the commit from the local repo to your remote repositories, run git push -u remote-name branch-name where remote-name is the nickname the local repo uses for the remote repositories and branch-name is the name of the branch to push to the repository. You only have to use the -u option the first time you push.

Why can I not push to GitHub?

This error mainly occurs when you attempt to push your local changes to GitHub while the local repository (repo) has not yet been updated with any changes made in the remote repo. So Git is trying to tell you to update the local repo with the current changes in the remote before pushing your own changes.

Can not push ref to remote?

The Error Message The error: failed to push some refs to remote git error occurs when new changes are pushed to the repository on version control not yet made it to your local repository. This could happen when you are working with someone on one project and simultaneously push to a branch.


1 Answers

Looks like you are trying to push a large delta and your push buffer is not big enough

Try this:

git config http.postBuffer 524288000
like image 74
Jess Chadwick Avatar answered Oct 21 '22 04:10

Jess Chadwick