Converting Mercurial folder to a Git repository

后端 未结 9 2054
情话喂你
情话喂你 2020-12-04 05:21

I don\'t have a huge experience with Mercurial, I\'m mostly a Git guy.

I would love to mirror a specific Mercurial folder/file in a git Repository. What I\'m actuall

9条回答
  •  庸人自扰
    2020-12-04 05:51

    On Linux or anything with bash/sh or similar, or python, try with fast export:

    cd
    git clone git://repo.or.cz/fast-export.git
    git init git_repo
    cd git_repo
    ~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
    git checkout HEAD
    

提交回复
热议问题