title: How to use Hg-to-Git tool - fast-export?
body: <p>I have tried the instructions from this <a href="https://stackoverflow.com/questions/16037787/convert-mercurial-project-to-git">SO post</a>:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>However when doing <code>git checkout HEAD</code> it throws:</p>
  
  <pre><code>error: pathspec 'HEAD' did not match any file(s) known to git
  </code></pre>
  
  <p>What is the work-around for this?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I managed to install mercurial-python howen when I try to import still it would not work, the error is:</p>
  
  <pre><code>Error: No --marks option given
  </code></pre>
  
  <p>When doing:</p>
  
  <pre><code>C:\fast-export\hg-fast-export.py -r C:\path\to\repo
  </code></pre>