title: Git push gives Permission denied (publickey). fatal: The remote end hung up unexpectedly. What should I do?
body: <p>So I open up my rails project in terminal today and make a few changes and try to push to github, and it doesn't work. I search on Google and stack overflow and all everyone points to the instructions on installing github to fix my issue.</p>
  
  <p>So I went through all the instructions and I still get the same issue. PLEASE HELP!</p>
  
  <pre><code>admin@new-host-2:~/Desktop/sample_app$ git status
  # On branch filling-in-layout
  # Your branch is ahead of 'origin/filling-in-layout' by 3 commits.
  #
  # Changes not staged for commit:
  #   (use "git add &lt;file&gt;..." to update what will be committed)
  #   (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
  #
  #   modified:   app/views/pages/home.html.erb
  #
  no changes added to commit (use "git add" and/or "git commit -a")
  
  admin@new-host-2:~/Desktop/sample_app$ git add .
  admin@new-host-2:~/Desktop/sample_app$ git commit -am 'testing git yet again'
  [filling-in-layout b607a16] testing git yet again
   1 files changed, 1 insertions(+), 1 deletions(-)
  admin@new-host-2:~/Desktop/sample_app$ git push
  Permission denied (publickey).
  fatal: The remote end hung up unexpectedly
  
  admin@new-host-2:~/Desktop/sample_app$ ssh-add -l
  The agent has no identities.
  
  admin@new-host-2:~/Desktop/sample_app$ git credential-osxkeychain
  Usage: git credential-osxkeychain &lt;get|store|erase&gt;
  </code></pre>
  
  <p>Also why does it say # Your branch is ahead of 'origin/filling-in-layout' by 3 commits?</p>