English 中文(简体)
git for mercurial like git-svn
原标题:

Hello is there a tool for git that allow to work with mercurial repositories

F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way..

So is there some tool for mercurial for that ?

最佳回答

See this related SO question: Git interoperability with a Mercurial Repository

It seems that hg2git is of interest. It is part of the git fast-export family of tools.

If you want hg to push/pull from a git repo, then consider the Hg-Git Mercurial Plugin.

问题回答

There is bridge support for Mercurial and Bazaar now distributed as part of git: git-remote-hg is in the git tree under contrib/remote-helpers. It is not full-featured, so it will allow you to clone a hg repo in git, but more advanced operations like tagging and branching may not work.

I recommend gitifyhg. It s a fork of git-remote-hg, and the team responsible seems to be more responsive to bugs, so you can tag and branch just as you ordinarily would with a git repo, except it s Mercurial at the backend. It s available in pypi, so you can just easy_install gitifyhg, and then:

git co gitifyhg::ssh://my.repo//path/to/repo




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签