我正在按照 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/