Migrating Mercurial to Git

suggest change

One can use the following methods in order to import a Mercurial Repo into Git:

  1. Using fast export:
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
  1. Using Hg-Git: A very detailed answer here: https://stackoverflow.com/a/31827990/5283213
  2. Using GitHub’s Importer: Follow the (detailed) instructions at GitHub.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents