git - 致命的 : The remote end hung up unexpectedly with a fetch upstream

标签 git github

我正在按照 github 上的说明 fork 存储库,但除了配置 Remote 之外的所有内容都可以正常工作。我被告知运行以下代码,但 git fetch upstream 返回以下 fatal: The remote end hung up unexpectedly 这是什么原因造成的,有人可以解释配置 Remote 的含义。

$ cd Spoon-KnifeChanges the active directory in the prompt to the newly cloned "Spoon-Knife" directory
$ git remote add upstream git://github.com/octocat/Spoon-Knife.gitAssigns the original repo to a remote called "upstream"
$ git fetch upstream

最佳答案

为什么不重新开始:

$ rm -rf Spoon-Knife
$ git clone git://github.com/octocat/Spoon-Knife.git
$ cd Spoon-Knife
$ git remote add upstream git://github.com/octocat/Spoon-Knife.git
$ git fetch upstream

至于remote end hung up unexpected 错误,见this Stack Overflow 问题(在许多问题中)——最可能的原因是您的 SSH key 设置不正确。

关于git - 致命的 : The remote end hung up unexpectedly with a fetch upstream,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9591294/

相关文章:

git - 根据 git status 为 SublimeText TreeView 中的文件着色?

git - 如何将一个目录从一个 git 存储库复制到另一个,同时保留历史记录?

git - 存储库访问被拒绝。通过部署 key 访问是只读的

ftp 服务器上的 Git 存储库

git push origin [local-branch] 尝试推送到远程主分支而不是创建一个新分支

git - 如何使用命令行删除我在 Git 上的存储库?

Git 快进 VS 无快进 merge

swift - 如何将引号(“)包含到 Swift 中 HTTP Head 字段使用的字符串中

linux - `ssh -vT git@github.com` 工作正常,代理在 github ssh key 中。问题在哪里?

python - 如何只上传源文件到github?