Hg To Git Migration
Migrate from mercurial to git documentation source.
Hg to git migration. This seems to be the official repository. Step 4. How to convert a mercurial repository to git on windows. It uses mercurial s hg git patched version of hg git and automates some steps for easy of use and consistency.
Python3 6 hg git migrator py local mercurial repository empty github url. If all you wanted to do was migrate from mercurial to git then good job you did it. Steps to migrate are. Go to the mercurial repo.
Obviously for cloning we just needed pushing. Hg git is a nice hg extension that lets you push and pull from remote git repositories. Hg clone https bitbucket. Hg git is a mercurial extension.
This can bloat your git log and might make it a bit unclear. Install latest development version. Step 2 add hg git as an extension. Mkdir repo git or whatever cd repo git git init git config core ignorecase false this one s added by me hg fast export sh r local repo git checkout head stop smell the roses think about how much you ve achieved so far.
You can also tell git svn not to include the metadata that subversion normally imports by passing no metadata to the clone or init command. Migrating hg to git the process is rather straight forward. In this post i summarize how the migration was done using hg git. Downloading upstream dulwich source and manually running make python python2.
Tool has the python version that you can run on windows but it didn t work for me so i used sh script on linux on virtualbox. The hg bookmark is. You can provide this file to git svn to help it map the author data more accurately. Create a new git repository clone your hg repository use hg git to push your hg commits to git and then push to a remote git repository.
Migration with fast export tool fast export is tool that processes each hg commit and migrates it to git. Step 1 clone hg git. The metadata includes a git svn id inside each commit message that git will generate during import. Migrate an existing hg repository to local git.
Step 3 create a bare git repo to convert into.