Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push to BitBucket from SourceTree

I am new with BitBucket and SourceTree and I try to push my Rep. in SourceTree for windows with Git to BitBucket but it gives me this error:

conq: repository access denied. access via a deployment key is read-only.

fatal: Could not read from remote repository.

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

I set a deployment key in BitBucket by my public key and the ssh key agent is running with my private key. I have owner access right. I think I missed a configuration that results in this error, any suggestion?

like image 769
kemara Avatar asked Apr 30 '13 12:04

kemara


People also ask

How do I push a repository to Bitbucket?

At the command line, make sure you've changed into the repository directory. Enter git push at the command line to push your commits from your local repository to Bitbucket. To be specific about exactly where you're pushing, enter git push <remote_server> <branch_name>.

How do I add existing project to Bitbucket Sourcetree?

If you already have a repository, you can view it in SourceTree. Click New, then Add Existing Local Repository. Select the repository your wish to add, then click Open. Your added repository appears under Local.


1 Answers

Make sure you're not adding the SSH key under "Deployment Key" in your Bitbucket repository's settings. What you need to do is add the SSH key under "Manage Account" (Click your Avatar)> "SSH Keys". It's explained here

like image 83
osehgol Avatar answered Sep 27 '22 22:09

osehgol