Vaibhav Bajpai | Blog

Exporting a Mercurial Repository to Git

16 October 2011

Clone hg-fast-export →

$ git clone git://repo.or.cz/fast-export.git

Put hg-fast-export in your PATH

Initialize a Git repository:

$ git init foo

Export hg repository:

[foo] $ hg-fast-export.sh -r bar

where bar is the path to your hg repository.

Checkout master:

[foo] $ git checkout
Fork me on GitHub