Answer the question
In order to leave comments, you need to log in
Switching from hg to git?
Hi guys! I want to fully and completely migrate some of my projects from mercurial (Google Code) to git (GitHub).
I used GC for a very long time, but GH impressed me a lot more in the end.
But I'm interested in two things:
1. Moving all commits on the project. That is, in order not to create a naked project, but there was a whole story with actors and branches
2. A sane plugin for working with Netbins. You need a little: "Commit", "Push" - it pushed (preferably, automatic password entry), "Pool". Everything else, like diffs, merges, etc. - highly desirable. You can have a separate gui application for Linux on Qt, but this is not so interesting,
but the first point is extremely important - transferring the entire history of edits. I'm looking for advice on how to make it look good. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
We used hg-fast-export: hedonismbot.wordpress.com/2008/10/16/hg-fast-export-convert-mercurial-repositories-to-git-repositories/
+ you may need to change authors emails, then git filter will help -branch.
The advantage of using hg-fast-export is speed. This is the fastest and most reliable way.
Regarding the second point, I will not prompt anything.
Alternatively, there is an extension for Mercurial HgGit . Having an hg repository in the working directory, you can push all the revisions into the git repository (including the empty one, I think).
On the second point, there is such a plugin , though a year ago, when I was still using netbeans, it was buggy, I don’t know how things are now, but this is the only option.
By the way, netbeans 7 promises native git support.
You can have a separate gui application for Linux on Qt, but it's not so interesting
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question