Tuesday, September 17, 2013

Convert Mercurial to Git Repository

Prerequisite:
* MSysGit
* Python 2.7
* Mercurial for Python 2.7
* fast-export

Steps:
Execute the following in Git Bash:
cd ~
git clone git://repo.or.cz/fast-export.git
git init git_repo
cd git_repo
~/fast-export/hg-fast-export.sh -r /path_to_old_mercurial_repo
git checkout HEAD

Ref:
Converting Mercurial folder to a Git repository - Stack Overflow

No comments: