Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to connect local git to a private bitbucket repository?

Amir Afzaal February 27, 2020

Hello there,

I am having the following problem as soon as I try to connect my recently created private repository on bitbucket from my local git.

(helloworld-fsjBW55Q) C:\Users\Amir\Desktop\helloworld>git remote add origin git@bitbucket.org:amirafzaal/hellow-world.git
fatal: remote origin already exists.

(helloworld-fsjBW55Q) C:\Users\Amir\Desktop\helloworld>git push -u origin --all
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events