david winter

Convert git repository to mercurial

Ensure that the mercurial convert extension is enabled:

nano ~/.hgrc

Inside that file add:


Save. Now do:

hg convert my-git-repo

This will create a new directory called my-git-repo-hg. This will appear empty at first, so do this:

cd my-git-repo-hg
hg checkout

All of your files will appear and you’re ready to go.

October 17, 2009

Questions? Comments? Your 2¢'s? → @davidwinter