git push 上的致命错误没有上游分支,包超出最大允许大小,写入错误:Broken pipeB/s,

问题描述

我在 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

我尝试了来自 the same post $ 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.
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 的问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)