SaltyCrane Blog — Notes on JavaScript and web development

Converting an hg repository to git

From http://stackoverflow.com/questions/16037787/convert-mercurial-project-to-git, use fast-export.

cd ~/src/bb
git clone git://repo.or.cz/fast-export.git
git init chrisatlee-poster-git
cd chrisatlee-poster-git
../fast-export/hg-fast-export.sh -r ../chrisatlee-poster
git checkout HEAD

Comments