Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我可以从BitBucket克隆git存储库吗?_Git_Mercurial_Bitbucket - Fatal编程技术网

我可以从BitBucket克隆git存储库吗?

我可以从BitBucket克隆git存储库吗?,git,mercurial,bitbucket,Git,Mercurial,Bitbucket,我试图使用BitBucket git存储库,但我个人更喜欢使用hg 这项工作: git克隆https://myuser@bitbucket.org/projectuser/project.git 它会提示我输入密码,然后按预期克隆存储库 但是,汞不起作用: hg克隆https://myuser@bitbucket.org/projectuser/project.git 这给了我一个404错误 我确实安装了hggit扩展。如果我首先使用git在本地进行克隆,那么我就可以将git存储库克隆到hg存储

我试图使用BitBucket git存储库,但我个人更喜欢使用hg

这项工作:

git克隆https://myuser@bitbucket.org/projectuser/project.git

它会提示我输入密码,然后按预期克隆存储库

但是,汞不起作用:

hg克隆https://myuser@bitbucket.org/projectuser/project.git

这给了我一个404错误

我确实安装了hggit扩展。如果我首先使用git在本地进行克隆,那么我就可以将git存储库克隆到hg存储库——从本地驱动器进行克隆——而且我可能会将本地hg存储库推回到本地git存储库


我更喜欢直接使用hg的bitbucket git存储库进行拉/推操作。有办法做到这一点吗?

对于Mercurial和Git的存储库可以共享的访问协议(http/s/+ssh),为了唯一地标识远程端的类型,使用的协议的特殊类型-
Git+real协议://

GiHub上的SSH-repo示例(我手头没有https-URL)

与纯SSH-URL相比

>hg clone ssh://git@github.com/lazybadger/Fiver-l10n.git Fiver-SSH
remote: Invalid command: 'hg -R lazybadger/Fiver-l10n.git serve --stdio'
remote:   You appear to be using ssh to clone a git:// URL.
remote:   Make sure your core.gitProxy config option and the
remote:   GIT_PROXY_COMMAND environment variable are NOT set.
abort: no suitable response from remote hg!

似乎hg的URL与git的URL不同。示例git+ssh://git@github.com/schacon/hg-git.git。我不熟悉hg,但我会更仔细地研究hg对https URL的期望。啊,谢谢,我需要在前面添加
git+
(并且从BitBucket前面删除myuser@)。
>hg clone ssh://git@github.com/lazybadger/Fiver-l10n.git Fiver-SSH
remote: Invalid command: 'hg -R lazybadger/Fiver-l10n.git serve --stdio'
remote:   You appear to be using ssh to clone a git:// URL.
remote:   Make sure your core.gitProxy config option and the
remote:   GIT_PROXY_COMMAND environment variable are NOT set.
abort: no suitable response from remote hg!