I just download Git bash and now I want to download a repository from Bitbucket. I have the username and password.
When I try:
$ git clone https://[email protected]/xxxx/xxxxx.git
I get:
Cloning into 'xxxx'...
fatal:https://[email protected]/xxxx/xxxxx/info/refs not found did you git
update server-info on the server ?
Copy Repo URL Start from the github.com interface: Navigate to the repo that you want to clone (copy) to your computer -- this should be YOUR-USER-NAME/DI-NEON-participants . Click on the Clone or Download dropdown button and copy the URL of the repo.
Clone a Bitbucket repository Click + in the global sidebar on the left, and under Get to work select Clone this repository. Select HTTPS from the menu in the upper-right (unless you've already set up your SSH keys). Copy the clone command.
When you create a repository in bitbucket, the user interface displays the exact clone command you need for you:
So, your clone command would need to be:
https://usersname@bitbucket.org/username/reponame.git
you can also use ssh to clone, this allows for the setup of passwordless push and pulling, with the use of ssh keys.
git clone [email protected]:username/reponame.git
Bitbucket may use Mercurial. Are you really cloning a git repository? I solved the same problem by cloning with hg ;-)
the interface on bitbucket has changed, so people looking for the right command can find it on the left hand side under "Actions"->"Clone" and you'll see the command already coded for https. It works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With