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:

  • Is it possible to use BitBucket with GitEye?
  • Error in npm install command
  • Xcode 4 restore file from earlier commit
  • github like workflow on private server over ssh
  • What is the best way to organize multiple projects when using git
  • Having multiple Git repositories
  • 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
    

  • I cannot get git to ignore my tmp folder of my Ruby on Rails project
  • Rails app using sqlite3 for development won't deploy into heroku
  • How to use git-filter-branch to test commits
  • git pull --rebase vs git rebase : what's the danger?
  • How to make a simple revert work on Git / EGit?
  • git diff gives no output
  • 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.