gpt4 book ai didi

git push 失败 - 致命的 : the remote end hung up unexpectedly

转载 作者:行者123 更新时间:2023-12-04 17:18:46 24 4
gpt4 key购买 nike

我在本地创建了一个 git repo。当我尝试推送到 github 时,我得到:

Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.
Enumerating objects: 47, done.
Counting objects: 100% (47/47), done.
Delta compression using up to 8 threads
Compressing objects: 100% (39/39), done.
Writing objects: 100% (47/47), 756.22 KiB | 9.11 MiB/s, done.
Total 47 (delta 7), reused 0 (delta 0), pack-reused 0
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
client_loop: send disconnect: Broken pipe
当我运行 git remote -v 时:
origin  git@github.com:crwils/react_unit_and_cypresstesting.git (fetch)
origin git@github.com:crwils/react_unit_and_cypresstesting.git (push)
尝试增加 git 缓冲区大小:
git config --global http.postBuffer 157286400
基于在此处找到的各种其他类似问题/解决方案,我也尝试过:
  • git 重新打包
  • 删除并创建新的 SSH key
  • 删除 .git 文件并重新初始化 repo 然后推送
  • 删除 .git 文件,将所有文件移动到新文件夹,在本地初始化一个新仓库,然后推送到 github 上的新远程仓库
  • 更改为不同的互联网连接

  • 这只是开始发生在一些现有的和新的 repo 上,但不是其他的,没有明显的主题。
    有人可以帮忙吗?

    最佳答案

    首先检查使用 HTTPS 而不是 SSH 是否可行:这将隔离 SSH 端口 22 上的问题。

    cd /path/to/react_unit_and_cypresstesting
    git remote set-url https://github.com/crwils/react_unit_and_cypresstesting.git
    git push
    您必须输入您的 GitHub 用户名/密码,但它们可以缓存在凭证助手中。

    关于git push 失败 - 致命的 : the remote end hung up unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67494507/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com