4

I am following the instructions on github for forking a repo but everything up to not including configure the remotes works. I am told to run the following code but git fetch upstream returns the following fatal: The remote end hung up unexpectedly Whats causing this, and could someone 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
tshepang
  • 12,111
  • 21
  • 91
  • 136
Cool Guy Yo
  • 5,910
  • 14
  • 59
  • 89

1 Answers1

3

Why not just start fresh:

$ 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 Stack Overflow question (among many) -- most likely reason is that your SSH keys weren't set up correctly.

Community
  • 1
  • 1
Marvin Pinto
  • 30,138
  • 7
  • 37
  • 54