更新时间:2023-11-11 21:16:34
请尝试快速导出:
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
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 actually trying to do is to export the history of a file from a Mercurial repository to Git and being able to keep this in sync with future commits.
Do you have any suggestion on how to proceed? I believe that the way to go should be to get the history of the Mercurial patch, periodically export every single commit as a patch and apply the Mercurial patches to the Git repository.
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