P
P
Pavlo Ponomarenko2010-12-08 04:41:14
git
Pavlo Ponomarenko, 2010-12-08 04:41:14

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

4 answer(s)
F
faust0, 2010-12-08
@TheShock

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.

B
Beholder, 2010-12-08
@Beholder

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).

D
Dmitry404, 2010-12-08
@Dmitry404

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.

S
Sannis, 2010-12-08
@Sannis

You can have a separate gui application for Linux on Qt, but it's not so interesting

With this, the situation is as follows ... There are tools that come practically in the delivery of git itself: git-gui and gitk. The first one allows you to visually show/change files prepared for a commit (including line by line) and make commits. The second one displays the branch tree. Their advantage is in the presence of packages in the main repositories. But they are written in Tk, so the interface is not fabulous.
But there is everything the same, but also on Qt / GTK. For more details, see the screenshots in the review the-bosha.ru/2010/05/11/nebolshoy-obzor-gui-interfeisov-dlya-git/
SmartGit is worth noting, but it may seem too fancy, and some operations are not named like originals on the command line can be confusing at first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question