Convert git repository to mercurial

Ensure that the mercurial convert extension is enabled:

nano ~/.hgrc

Inside that file add:

[extensions]
hgext.convert=

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.

2009-10-17 [, , ]
  • http://mdean.us/code/?p=21 Migrating from Subversion to Mercurial via Git | Void Code

    [...] from Subversion to Git is relatively painless (at least for simpler repositories). Migrating from Git to Mercurial is also pretty [...]

blog comments powered by Disqus