I've been developing a java application using git as source code repository. I'd like to share the project with other java developers and hg seems to be most used by them.
My question is how do I convert a git repository to hg?
If I tried googling "convert git to hg" and every search hit is about converting from hg to git. I'm also using TortoiseHg.
Git Is Better for Experienced Users Mercurial depends on your level of technical expertise. Mercurial may be safer for less experienced users, but Git can offer ways to enhance safety (once you know what you are doing).
Overview. This extension adds the ability to work on a Git repository from Mercurial. It also allows using a Git server as a collaboration point for a team with developers using both Git and Mercurial. At the same time, it can also be used to interact with a Mercurial repository using Git.
The Hg-Git plugin can convert commits/changesets losslessly from one system to another, so you can push via a Mercurial repository and another Mercurial client can pull it. In theory, the changeset IDs should not change, although this may not hold true for complex histories. Commands.
The hg convert
utility isn't on by default after installation. In order to set it as such add the following to your .hgrc
file.
[extensions] hgext.convert=
If you're using TortoiseHg on Windows then this file resides in your home directory as mercurial.ini
. After this setting change you will be able to use the hg convert
utility.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With