Upload a branch already created to BitBucket

0

I have a project in Git Local and I want to upload to bitbucket, but by following the instructions:

Get started with command line

  

Step 1: Switch to your repository's directory cd / path / to / your / repo

     

Step 2: Connect your existing repository to Bitbucket git remote add   origin ssh: //[email protected]/nutriex_project/checkoutnovo.git git   push -u origin master

The following error occurs:

  

$ git push -u origin master Warning: Permanently added the RSA host   key for IP address '104.192.143.1' to the list of known hosts.   Permission denied (publickey). fatal: Could not read from remote   repository.

     

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

    
asked by anonymous 15.02.2017 / 18:27

2 answers

2
  

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

Have you checked if you have the right things?

You need to add your ssh key on bitbucket, follow the link for a tutorial explaining them:

link

    
15.02.2017 / 18:41
4

You need to get the public key of your computer, which is usually in

/home/<user>/.ssh/id_rsa.pub

and add it to your bitbucket settings.

In your Bitbucket account, go to

Bitbucket Settings > SSH Keys > Add Key

In the window that opens, you need to add the contents of the id_rsa.pub file

    
15.02.2017 / 18:46