Volker Voecking Software Engineering

Sat, Apr 15, 2017

A very easy way to convert a Mercurial repository to Git is by using the fast-export script:

cd ~
git clone git://repo.or.cz/fast-export.git
git init git_repo
cd git_repo
git config core.ignoreCase false
~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
git checkout HEAD

If you have some special requirements you might want to have a look at the comments in this StackOverflow answer: