gpt4 book ai didi

git - Mercurial 转换扩展无法从远程 Git 存储库中提取

转载 作者:太空狗 更新时间:2023-10-29 13:39:20 25 4
gpt4 key购买 nike

我正在尝试执行“hg convert”,以将 Git 存储库转换为 Hg 存储库。

现在,我没有在我的 Windows 7 机器上安装 Git;那有必要吗?我正在使用 TortoiseHG 命令行,并且我已经激活了转换扩展('hg help convert' 工作正常)。

这是我尝试使用的命令示例:

hg convert -s git -d hg https://github.com/mysticbob/glm.git gittest

那是 Github 上的公共(public)存储库,所以我应该可以从中转换。地址是 Github 所说的应该用来获取的地址。我得到的是以下消息:

initializing destination gittest repository
https://github.com/mysticbob/glm.git does not look like a Git repository

有什么想法吗?

最佳答案

如果我相信issue 1246 ,您需要为 hg convert 安装 git延长工作时间。

即使安装了 Git,您也可能会遇到一些其他导入问题,在这种情况下,您可以考虑其他替代方案,例如:

  • 将 git 存储库转换为 svn 存储库,然后将该 svn 存储库导入到 mercurial 存储库中
  • 或尝试 hg-git mercurial 插件,其中特别提到:

This plugin is implemented entirely in Python - there are no Git binary dependencies, you do not need to have Git installed on your system.

(但我不知道 hg-git 是否适用于最近的 1.7+ Mercurial 版本)

关于git - Mercurial 转换扩展无法从远程 Git 存储库中提取,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4917589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com