Saturday, January 22, 2011

Export Mercurial repository into git repository

Wanna export mercurial or SVN repository to git ?

fast-export helps with that.

Thanks to Akhil for the tip.

The most interesting commands are: (to be done in the empty git repository that will be the target):


/path/to/hg-fast-export.sh -r /path/to/hg_repo
git-repack -a -d -f

No comments: