开发者

Converting Git to HG with only one branch

开发者 https://www.devze.com 2023-02-02 11:07 出处:网络
I have a problem when trying to convert. There is \"mas开发者_如何转开发ter\" branch and also another branch named \"testing\"

I have a problem when trying to convert.

There is "mas开发者_如何转开发ter" branch and also another branch named "testing"

When I use standard method hg convert gitbranch hgconvertedbranch I get two heads and need merge. - It merge somehow both branches and I get sources and changes different from original "master" branch which only I need to convert.

Do you have any solution for that? Any option for "hg convert" command to make convert really only master branch and not all togerther? Thank you.


Just make a local clone of your git repository with only one branch, and convert to hg from that.


After you've done the convert to Mercurial you can use clone -r ONEHEAD converted new to get a repo having only revision ONEHEAD and all its ancestors.

0

精彩评论

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