我正在尝试将变更集从使用 TortoiseHg 创建的本地 Mercurial 存储库推送到远程 Git 存储库。我已经安装并配置了 hg-git,它会拉得很好。但是当我运行 push 它给了我这个
命令
hg push git+ssh://git@dummyrepo:username/repo.git
结果
pushing to git+ssh://git@dummyrepo:username/repo.git
importing Hg objects into Git
creating and sending data
abort: the remote end hung up unexpectedly
为了达到这一点,我做了几件事。但我希望解决最后一件事,因为我发现 TortoiseHg 比任何 Git 工具(适用于 Windows)更容易使用。
- 安装 TortoiseHg
- 从http://bitbucket.org/durin42/hg-git/拉下 hg-git
- 将 mercurial.ini 配置为指向 hg-git 库
- 从 git://git.samba.org/jelmer/dulwich.git 拉下 dulwich 源
- 编译 dulwich 并放入 TortoiseHg 的 library.zip
- 配置 TortoiseHg 以使用 TortoisePlink.exe 进行 ssh
- 将我的私钥添加到选美
有什么想法我可能会错过吗?