开发者

Is there a Git command to import a hg repository

开发者 https://www.devze.com 2023-02-15 14:47 出处:网络
With git svn clone I can work o开发者_运维知识库n a subversion repository using git. Is there a similar way to work on Mercurial (hg) repositories?There isn\'t anything built in.

With git svn clone I can work o开发者_运维知识库n a subversion repository using git. Is there a similar way to work on Mercurial (hg) repositories?


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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号