如何将git存储库转换为mercurial? [英] How do I convert a git repository to mercurial?

查看:209
本文介绍了如何将git存储库转换为mercurial?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发一个使用git作为源代码库的java应用程序。我想与其他java开发人员分享这个项目,而且他们似乎最常使用hg。

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.

我的问题是如何将git存储库转换为hg?

My question is how do I convert a git repository to hg?

如果我尝试使用Google搜索convert git到hg并且每个搜索命中都是关于从hg转换为git的。我还使用 TortoiseHg

If I tried googling "convert git to hg" and every search hit is about converting from hg to git. I'm also using TortoiseHg.

推荐答案

hg convert 实用程序未处于启用状态。为了设置它,请将以下内容添加到 .hgrc 文件中。

[extensions]
hgext.convert=

如果您使用 Windows上的TortoiseHg ,那么这个文件位于您的主目录中: mercurial.ini 。更改设置后,您将可以使用 hg 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.

这篇关于如何将git存储库转换为mercurial?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆