繁体   English   中英

从BitBucket下载Git仓库

[英]Download a Git repo from BitBucket

我只是下载Git bash,现在我想从Bitbucket下载一个存储库。 我有用户名和密码。

当我尝试:

$ git clone https://xxxxx@bitbucket.org/xxxx/xxxxx.git

我明白了:

Cloning into 'xxxx'...

fatal:https://xxxxx@bitbucket.org/xxxx/xxxxx/info/refs not found did you git
 update server-info on the server ?

在bitbucket中创建存储库时,用户界面会显示您需要的确切克隆命令:

捕获克隆帮助

所以,你的克隆命令需要是:

https:// usersname @ bitbucket.org / username /reponame.git

你也可以使用ssh来克隆,这允许使用ssh键设置无密码推拉。

git clone git@bitbucket.org:username / reponame.git

Bitbucket可能会使用Mercurial 你真的克隆了一个git存储库吗? 我用hg克隆了同样的问题;-)

bitbucket上的界面已经改变,所以寻找正确命令的人可以在左侧的“动作” - >“克隆”下找到它,你会看到已经为https编码的命令。 有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM