我的计算机上有一个本地 Git 存储库,我正在尝试使用它进行克隆Hg-Git http://hg-git.github.com/。当我从一个克隆时,它对我来说效果很好git://
键入路径,但如果我尝试从本地目录克隆,则不会。
这是一个例子...
hg clone "C:\Users\James\Documents\My Games\FalloutNV"
destination directory: FalloutNV
importing Hg objects into Git
abort: The system cannot find the file specified
该路径确实存在,并且不知何故它知道它是一个 Git 存储库,但它的方向是向后的。它应该将 Git 对象导入到(新的)Hg 存储库中。
有任何想法吗?我在 Windows 上尝试使用 TortoiseHg,但在命令行中足够舒适。
Update
今晚我发现如果我重命名FalloutNV
to FalloutNV.git
...克隆将神奇地从本地磁盘运行。只是一个可能有帮助的指针!
这很奇怪,因为该错误消息通常与 Hg-Git(dulwich http://pypi.python.org/pypi/dulwich一部分)找不到您的 ssh 密钥 https://stackoverflow.com/questions/2573571/cloning-a-read-write-github-repository-using-tortoisehg.
因此manojlds https://stackoverflow.com/users/526535/manojlds建议克隆使用明确地文件协议(除了我会使用“file:///C:/Users/James/Documents/My Games/FalloutNV
“与 3”/
” 在开头而不是两个)。
The "让 hg-git Mercurial 插件在 Windows 机器上运行的指南 http://candidcode.com/2010/01/12/a-guide-to-converting-from-mercurial-hg-to-git-on-a-windows-client/" 确认 ssh 问题:
如果您收到类似“abort: The system cannot find the file specified
”, then dulwich
在您的中找不到 sshPATH
.
您需要确保安装 Cygwin 的 OpenSSH 并且可以运行“ssh
” 从命令行。
(并且还建议您获取最新版本的德威库)
The OP jocull https://stackoverflow.com/users/97964/jocull在评论中添加:
有趣的事实:今晚我发现如果我重命名“FalloutNV
" to "FalloutNV.git
“...克隆将神奇地从本地磁盘运行。
这类似于Git 协议页面 http://progit.org/book/ch4-1.html,其中本地 Git 存储库的每个路径都以.git
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)