Home > development, IT, linux > Converting a Mercurial repository to Git

Converting a Mercurial repository to Git

2012/02/07

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

Advertisements
%d bloggers like this: