无法使用git clone git:// …克隆repo – 使用git clone http://

栏目: 后端 · 前端 · 发布时间: 6年前

内容简介:翻译自:https://stackoverflow.com/questions/19683557/cant-clone-repo-using-git-clone-git-ok-with-git-clone-http
Git

新手在这里.我正在新的Ubuntu VM上设置git并尝试克隆一些repos.克隆适用于以下命令:

git clone http://github.com/organisation_name/repo_name

(在提示输入用户名/密码后),但失败了

git clone git://github.com/organisation_name/repo_name

并且

git clone git://github.com/organisation_name/repo_name.git

使用相同的错误消息:

Cloning into 'repo_name'...
fatal: remote error:
Repository not found

当然,显而易见的答案是“使用http方法”,但我试图理解为什么一个有效,另一个没有.有什么建议? (在回购名称btw上使用.git扩展名时有什么区别吗?)

谢谢!

好吧,我认为你在第二种情况下使用了错误的网址

试试这个

git clone git@github.com:organisation_name/repo_name.git

区别在于:在使用git @ vs你正在使用的/时的url中,以及最后使用的额外.git.

如果你去github并选择用于克隆的ssh url(而不是默认选择的https),这应该是相同的url

翻译自:https://stackoverflow.com/questions/19683557/cant-clone-repo-using-git-clone-git-ok-with-git-clone-http


以上所述就是小编给大家介绍的《无法使用git clone git:// …克隆repo – 使用git clone http://》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Computer Age Statistical Inference

Computer Age Statistical Inference

Bradley Efron、Trevor Hastie / Cambridge University Press / 2016-7-21 / USD 74.99

The twenty-first century has seen a breathtaking expansion of statistical methodology, both in scope and in influence. 'Big data', 'data science', and 'machine learning' have become familiar terms in ......一起来看看 《Computer Age Statistical Inference》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具