我可以从BitBucket克隆一个git仓库吗?

我正在尝试使用BitBucket git存储库,但我个人更喜欢使用hg。

这工作:

git clone https://myuser@bitbucket.org/projectuser/project.git

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

但是,hg不起作用:

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

这给了我一个404错误。

我确实安装了hggit扩展。 如果我首先使用git在本地克隆,那么我就可以将git存储库克隆到hg存储库中 - 克隆我的本地驱动器 - 大概我可以推回到本地hg存储库到本地git存储库。

我只是希望直接从hg的bitbucket git仓库中进行推/推。 有没有办法做到这一点?


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

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

>hg clone git+ssh://git@github.com/lazybadger/Fiver-l10n.git
destination directory: Fiver-l10n
importing git objects into hg
updating to branch default
19 files updated, 0 files merged, 0 files removed, 0 files unresolved

与纯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!
链接地址: http://www.djcxy.com/p/83023.html

上一篇: Can I hg clone a git repository from BitBucket?

下一篇: Proper way to use cbind, rbind with s4 classes in package