如何解决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 举报,一经查实,本站将立刻删除。