Converting a Mercurial (hg) Repository to git

cd ~
git clone git://
git init new_git_repo
cd new_git_repo
~/fast-export/ -r /path/to/old/mercurial_repo
git checkout HEAD
git repack -a -d --depth=250 --window=250

(Thanks to akluth's answer on Convert Mercurial project to Git) and Linus Torvalds' mail quoted in this post for this solution).

These pages contain links to resources that we find useful. They are not meant to be a comprehensive set of links on a topic, but we hope that you find them helpful. Catalyst Computing Services are not responsible for the content of external websites.