Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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
Mercurial convert扩展无法从远程Git存储库中提取_Git_Mercurial_Mercurial Convert - Fatal编程技术网

Mercurial convert扩展无法从远程Git存储库中提取

Mercurial convert扩展无法从远程Git存储库中提取,git,mercurial,mercurial-convert,Git,Mercurial,Mercurial Convert,我正在尝试做一个“hgconvert”,将Git回购转换成hg回购 现在,我的Windows7机器上没有安装Git;有必要吗?我正在使用TortoiseHG命令行,并且我已经激活了convert扩展(“hg help convert”工作正常) 下面是我尝试使用的命令示例: hg convert -s git -d hg https://github.com/mysticbob/glm.git gittest 这是Github上的公共回购协议,所以我应该能够从中转换。这个地址是Github所说

我正在尝试做一个“
hgconvert
”,将Git回购转换成hg回购

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

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

hg convert -s git -d hg https://github.com/mysticbob/glm.git gittest
这是Github上的公共回购协议,所以我应该能够从中转换。这个地址是Github所说的用来获取信息的地址。我得到的是以下信息:

initializing destination gittest repository
https://github.com/mysticbob/glm.git does not look like a Git repository
有什么想法吗?

如果我相信,您需要安装git才能让扩展正常工作

<> P>即使安装了Git,您也可能会遇到导入的其他问题,在这种情况下,您可以考虑其他备选方案,如:

  • 将git回购转换为svn回购,然后将svn回购导入mercurial回购
  • 或者尝试mercurial插件,其中特别提到:
这个插件完全是用Python实现的——没有Git二进制依赖项,您不需要在系统上安装Git

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