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://xxxxx@bitbucket.org/xxxx/xxxxx.git
I get:
Cloning into 'xxxx'...
fatal:https://xxxxx@bitbucket.org/xxxx/xxxxx/info/refs not found did you git
update server-info on the server ?
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 git@bitbucket.org: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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.