Vaibhav Bajpai | Blog

Exporting a Mercurial Repository to Git

16 October 2011

Clone hg-fast-export →

$ git clone git://

Put hg-fast-export in your PATH

Initialize a Git repository:

$ git init foo

Export hg repository:

[foo] $ -r bar

where bar is the path to your hg repository.

Checkout master:

[foo] $ git checkout
Fork me on GitHub