我正在尝试使用 BitBucket git 存储库,但我个人更喜欢使用 hg。
这有效:
git clone https://[email protected] /cdn-cgi/l/email-protection/projectuser/project.git
它提示我输入密码,然后按预期克隆存储库。
然而,hg 不起作用:
hg clone https://[email protected] /cdn-cgi/l/email-protection/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://[email protected] /cdn-cgi/l/email-protection/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://[email protected] /cdn-cgi/l/email-protection/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!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)