My client sent me this link:
https://ghar1@bitbucket.org/ghar1/api-request-server.git
How do I clone it with my username (pguardiario) and private key
Welcome to the Community!
The steps for cloning a repository can be found at Clone a repository. In your case, you'll need to type the following in your teminal:
git clone https://ghar1@bitbucket.org/ghar1/api-request-server.git
Keep in mind that if the repository is not public, you'll need to have permissions to access that repository to be able to clone it.
I hope that helps you! If you need further assistance, let us know :)
Best regards,
Ana
Hi Ana,
Thanks for the reply.
When I do that it asks me for a password rather than using my private key which I have already set up with bitbucket.
I expected to be able to:
git clone pguardiario@bitbucket.org:/ghar1/api-request-server.git
but this gives errors. Please advise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @pguardiario ,
I believe @Ana mistakenly pasted the wrong command from the documentation page she pointed to. Indeed, while she linked the correct documentation page, the provided command for is cloning over HTTPS instead of SSH.
The command to clone over SSH, as explained in the Clone a repository page, is:
git clone ssh://git@bitbucket.org:ghar1/api-request-server.git
Also, please notice that if you have access to the repository (that is required in order to be able to clone it), you can get the url to clone the repository by going to "Source" and clicking on the Clone button on the top right corner.
See below picture for details:
Let me know if this helps or if you have further questions on this topic.
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.