从BitBucket下载Git仓库

Raj*_*war 31 git download bitbucket

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

当我尝试:

$ git clone https://xxxxx@bitbucket.org/xxxx/xxxxx.git
Run Code Online (Sandbox Code Playgroud)

我明白了:

Cloning into 'xxxx'...

fatal:https://xxxxx@bitbucket.org/xxxx/xxxxx/info/refs not found did you git
 update server-info on the server ?
Run Code Online (Sandbox Code Playgroud)

小智 45

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

捕获克隆帮助

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

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


小智 9

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

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


sch*_*jos 6

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