Converting Mercurial Repositories to Git

Converting Mercurial Repositories to Git

Source, Extra Information, & Further Reading: Mark Heath

Setup:

hg clone https://bitbucket.org/durin42/hg-git

Add to .hgrc or mercurial.ini:

[extensions]
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 *