繁体   English   中英

无法推送到远程git存储库

[英]Cannot push to remote git repository

所以我一直在努力将我最近的提交推送到我在Bitbucket上设置的远程存储库。

我最初使用Xcode,并提出了这个问题 ,并建议使用终端推送而不是Xcode。

现在,我尝试了终端,但没有解决问题。 但是当我尝试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$ 

我是这些远程存储库的新手,并且在Xcode上一切正常,所以如果你建议我在终端中做一些事情,那么如果你描述了如何这样做会有所帮助。

有关详细信息,请参阅我之前的问题


编辑 :这是结果;

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)

看起来你正试图推动一个大的delta,你的推送缓冲区不够大

试试这个:

git config http.postBuffer 524288000

我有同样的问题和git config http.postBuffer 524288000为我工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM