Converting Mercurial Repositories to Git

Source, Extra Information, & Further Reading: Mark Heath


hg clone

Add to .hgrc or mercurial.ini:

hggit = c:/users/…/hg-git/hggit

Convert a Repo:

git init --bare git_bare_repo
hg bookmarks hg
hg push path\to\git_bare_repo
git clone git_bare_repo git_regular_repo

Leave a Reply

Your email address will not be published. Required fields are marked *