How do I convert a git repository to mercurial?

后端 未结 9 1106
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 20:31

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.

9条回答
  •  梦毁少年i
    2021-01-29 21:15

    In the Git folder with all my Git repositories I created the Git2Hg.cmd file with the following content:

    set PATH=%PATH%;C:\Program Files\TortoiseHg
    set PATH=%PATH%;C:\Program Files\Git\bin
    hg convert %1
    

    Now I can convert a Git repository to Hg by typing this in a CMD:

    Git2Hg "Folder Name"
    

提交回复
热议问题