git - 从 BitBucket 下载 Git 存储库

标签 git download 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 中创建存储库时,用户界面会显示您需要的确切克隆命令:

capture of clone help

因此,您的克隆命令需要是:

https://用户名@bitbucket.org/用户名/reponame.git

关于git - 从 BitBucket 下载 Git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10907863/

相关文章:

git - 像这样使用git有什么问题吗?

java - java从服务器下载文件

git - 如何解决 pull 请求中的冲突?

git - 如何与其他用户共享 bitbucket 存储库?

git - 为什么当HEAD版本在该行没有内容时git显示 merge 冲突

Git-Repo 在所有提交的文件中搜索字符串(未知分支和提交)

git - "behind"在源代码树中是什么意思?

javascript - Appcelerator 钛 : Download and interpret JavaScript code at runtime?

java - 如何从远程服务器为位于 apache-tomcat WEB-INF/lib 文件夹下的 jar 文件创建一个下载 url?

git pull 忽略本地目录中的一个文件