How to use Hg-to-Git tool – fast-export?

I have tried the instructions from this SO post:

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

However when doing git checkout HEAD it throws:

  • git - checkout remote git code into Android Studio imported project with Gradle build
  • Git ignore directory without making changes to remote
  • Deploying play! to heroku
  • No such file or directory - git ls-files
  • why my file permission being changed after pull from git repository
  • Find the parent branch of a Git branch
  • error: pathspec 'HEAD' did not match any file(s) known to git
    

    What is the work-around for this?

    Update:

    I managed to install mercurial-python howen when I try to import still it would not work, the error is:

    Error: No --marks option given
    

    When doing:

    C:\fast-export\hg-fast-export.py -r C:\path\to\repo
    

  • importing a project into eclipse using egit
  • How to undo changes matching a pattern in multiple commits?
  • SVN in-place import and checkout
  • How to undo a git merge with conflicts
  • Is it possible to use Julia's Pkg.submit under windows?
  • Detecting changes to remote branch
  • One Solution collect form web for “How to use Hg-to-Git tool – fast-export?”

    Try running hg-fast-export.sh instead of hg-fast-export.py. It looks like the shell wrapper includes an option for --marks for you.

    Git Baby is a git and github fan, let's start git clone.