Git Migrating to Git Migrating Mercurial to Git


One can use the following methods in order to import a Mercurial Repo into Git:

  1. Using fast export:
git clone git://
git init git_repo
cd git_repo
~/fast-export/ -r /path/to/old/mercurial_repo
git checkout HEAD
  1. Using Hg-Git: A very detailed answer here:

  2. Using GitHub's Importer: Follow the (detailed) instructions at GitHub.