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.
So I went through all the instructions and I still get the same issue. PLEASE HELP!
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 <file>..." to update what will be committed)
# (use "git checkout -- <file>..." 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 <get|store|erase>
Also why does it say # Your branch is ahead of 'origin/filling-in-layout' by 3 commits?