Fatal: the far end unexpectedly hung up

I follow the instructions on github to deploy the repo, but that’s all, right down to setting up the remote control. I am invited to run the following code, but git fetch upstream returns the following fatal: The remote end hung up unexpectedly What causes this, and someone can explain what it means to configure the remotes.

 $ 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 
+4
source share
1 answer

Why not just start a new one:

 $ 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 

As for the remote end hung up unexpectedly error, see this Question about stack overflow (among many) - most likely the reason is that your SSH keys were not configured correctly.

+3
source

Source: https://habr.com/ru/post/1400094/


All Articles