Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't push to a remote repository on my github

Kevin Rodrigue Shema BIVEGETE
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 19, 2020

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.

 

 

1 answer

0 votes
David at David Simpson Apps
Atlassian Partner
October 20, 2020

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events