I need to clone a repository from Bitbucket that I was given access to by another user.
I tried this:
git clone [email protected]:repositoryOwnerUserName/repo.git
It gave me an error message: Permission denied(publickey)
.
How I can clone this repository?
When cloning a git project you can either use SSH or HTTP protocols. See the documentation:
When using SSH (as it is in your case) you need to have you public key installed on your BitBucket account. See here for more info. Note that URLs for SSH method start with
git@
and notusername@
.You can also try to clone it using the HTTP method, which in this case would be like:
This should get you started. However I have not tested it!