将Mercurial转换为Git时出错

时间:2015-03-16 07:38:55

标签: git mercurial repository

我想将Mercurial Repo转换为GitHub的回购。 我在这里找到了许多答案,但它们都不适合我。

主要答案是:

cd ~
git clone git://repo.or.cz/fast-export.git
git init git_repo
cd git_repo
~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
git checkout HEAD

但是,当我在Git Shell中尝试此操作时,会出现以下错误:

D:\GitHub\odk-aggregate [master]> C:/Users/Adhish/fast-export/hg-fast-export -r D:\Development\opendatakit.aggregate
C:/Users/Adhish/fast-export/hg-fast-export : The term 'C:/Users/Adhish/fast-export/hg-fast-export' is not recognized
as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ C:/Users/Adhish/fast-export/hg-fast-export -r D:\Development\opendatakit.aggrega ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:/Users/Adhish.../hg-fast-export:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

D:\GitHub\odk-aggregate [master]>

请告诉我哪里出错了。

修改

当我将命令更改为快速导出。 SH 时,没有任何反应。

请帮助。

0 个答案:

没有答案