With git svn clone I can work on a subversion repository using git. Is there a similar way to work on Mercurial (hg) repositories?
- 3possible duplicate of Git interoperability with a Mercurial Repositorypoke– poke2011-03-07 21:49:19 +00:00Commented Mar 7, 2011 at 21:49
- Title is closer match to stackoverflow.com/questions/1389307/…wnoise– wnoise2011-03-07 22:23:26 +00:00Commented Mar 7, 2011 at 22:23
3 Answers
There isn't anything built in.
You can use git-hg however, which I use a lot and works great for pulling hg repos and updates to a git repo, but the downside of it is that you cannot push updates made to your git repo to a hg repo with git-hg.
3 Comments
/usr/share/doc/git/contrib/remote-helpers/ for the scripts to copy them somewhere into $PATHThe Mercurial extension hg-git is another way to go in the Hg->Git direction. If you just want to go in that direction, so far as I can see, it and git-hg both work well. More details here.
1 Comment
If it was the other case, I mean if you need a git->hg conversion you can use mercurial's Convert extension. But for your question git-hg should do fine.