git推送时出现致命错误(无上游分支,包超出允许的最大大小,写入错误:Broken pipelineB/s,)

问题描述 投票:0回答:1

我在 Github 上有一个旧的存储库(最后一次提交是 2 年前)。最近我使用本地副本,并执行了几次提交,尝试推送,它给了我以下错误

$git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
    git push --set-upstream origin master

我在here寻找解决方案,我尝试了

$ git push --set-upstream origin master
发生了以下错误:

Enumerating objects: 182, done.
Counting objects: 100% (182/182), done.
Delta compression using up to 8 threads
Compressing objects: 100% (110/110), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (166/166), 2.44 GiB | 599.00 KiB/s, done.
Total 166 (delta 61), reused 147 (delta 47), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

我尝试了来自同一篇文章

$ git push -u origin head
的另一种解决方案 它给了我一些额外的错误

git push -u origin master
Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.
Enumerating objects: 182, done.
Counting objects: 100% (182/182), done.
Delta compression using up to 8 threads
Compressing objects: 100% (110/110), done.
remote: fatal: pack exceeds maximum allowed size
fatal: sha1 file '<stdout>' write error: Broken pipeB/s
error: remote unpack failed: index-pack abnormal exit
To github.com:drnesr/PrayerTimesStudies.git
 ! [remote rejected] master -> master (failed)
error: failed to push some refs to 'github.com:AcountName/RepoName.git'

如何解决推送到 GitHub 的问题?

github push fatal-error git-push
1个回答
0
投票

您是否尝试先拉取远程存储库并首先修复合并冲突(如果存在)? 完成后尝试再次推送您的更改,您也可以尝试使用

git push -f
强制推到分支

© www.soinside.com 2019 - 2024. All rights reserved.