RailsTutorial: 1.3 GitHub

Working on setting up the git repository in the totorial section 1.3, I was unable to push the git project to the repository getting a

$:git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

After futzing around with a variety of different attempts (following the GitHub recommendations etc), I found that this link described a fix (Thank you Kurt van Gorkom!):

$:git remote rm origin
$:git remote add origin <remote url>

replace <remote url> with this information:

"git@github.com:<username>/<reponame>.git"

Otherwise the tutorial proceded flawlessly, allowing me to

  • Create a git repository
  • connect to GitHub
  • Create a branch and make a modification to the README file
  • commit the change
  • merge the branch to the main branch
  • push the changes to GitHub
This entry was posted in Tutorial and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *