I'm just trying to push my local master to the remote repository on github, but this is not possible. I have already made a repository in my github directory - on the website, and the app that I'm working on is simple in that I've only been working on the local master - no branches or anything.
When I try 'git push -u origin master' in the terminal, the reply is:
permission denied (publickey)
fatal: could not read from remote repository
When I try 'git push', the response is:
fatal: the current branch master has no upstream branch. To push the
current branch and set the remote as upstream, use 'git push --set-
upstream origin master'
But when I try 'git push --set-upstream origin master' I get:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I've been reading as much as I can online on this, but I can't get anywhere, so some advice would be much appreciated, thanks :-)