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

I have tried the instructions from this SO post:

cd ~
git clone git://
git init git_repo
cd git_repo
~/fast-export/ -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?


    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\ -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 instead of 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.