I am trying to push to a remote repository and it isn't working.
Here is the code I wrote trying to push:
git config --global user.name "I put my registered github username here"
git config --global user.email "I put my email here the same as that on my github"
git push -u origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The repository exists. Help out guys.
OK, GitHub is a little off topic, but here we go.
Make sure that you have configured an ssh key at https://github.com/settings/keys
If you haven't, Atlassian have written an article on how to generate one here:
https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
If you have both of those things covered, then make sure that you have write permission on the repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.