我已经尝试了这个SO帖子中的说明:
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 checkout HEAD
时,它会抛出:
error: pathspec 'HEAD' did not match any file(s) known to git
这有什么解决方法?
更新:
当我尝试导入时,我设法安装了 mercurial-python howen 仍然不起作用,错误是:
Error: No --marks option given
做的时候:
C:fast-exporthg-fast-export.py -r C:pathtorepo
尝试运行hg-fast-export.sh
而不是hg-fast-export.py
。看起来外壳包装器包括一个为您--marks
的选项。