Migrating Mercurial to Git
suggest changeYou can import a Mercurial repository into Git in any of these ways:
- 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
- Using Hg-Git. A longer write-up is at https://stackoverflow.com/a/31827990/5283213.
- Using GitHub’s Importer. Follow the instructions at GitHub.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents