How to use Hg-to-Git tool - fast-export?
Question: I have tried the instructions from this [SO
post](http://stackoverflow.com/questions/16037787/convert-mercurial-project-
to-git):

    
    
    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:

    
    
    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
    


Answer: 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.

