Converting a Mercurial repository to Git

Note to self:

Converting Hg repos to git using hg-fast-export.

Installation:

$ sudo aptitude install hg-fast-export

Usage:

$ cd new_git_dir

$ git init

$ hg-fast-export -r <hg-repo>

Works with:

git version 1.7.5.4

hg version 2.1