相关疑难解决方法(0)

使用TortoiseHg克隆读写github存储库

我正在尝试使用TortoiseHg的git + ssh协议在github上克隆我的个人分叉.它给了我一个相当奇怪的错误.这是命令

hg clone git+ssh://git@github.com:myusername/thefork.git
Run Code Online (Sandbox Code Playgroud)

这是在我安装了hg-git模块之后,它可以使用git://语法进行克隆.但我相信它与ssh有问题.我得到的错误就是这个.

importing Hg objects into Git
[Error 2] The system cannot find the file specified
Run Code Online (Sandbox Code Playgroud)

我试过像这样手动将ssh命令添加到mercurial.ini文件中

[ui]
username = email@address.com
ssh="C:\Program Files\TortoiseHg\TortoisePlink.exe" -ssh -2 -i "C:\Source\SSHPrivateKey.ppk"
Run Code Online (Sandbox Code Playgroud)

但我仍然得到同样的错误.有任何想法吗?

更新1

如果我从Git Bash shell运行相同的命令,它可以正常工作.我明白了

importing Hg objects into Git
Counting objects: 1559, done.
Compressing objects: 100% (586/586), done.
Total 1559 (delta 960), reused 1534 (delta 947)
importing Git objects into Hg
at:  0/86
updating to branch default
219 files updated, 0 files merged, 0 files removed, 0 …
Run Code Online (Sandbox Code Playgroud)

git ssh mercurial github tortoisehg

14
推荐指数
1
解决办法
3726
查看次数

标签 统计

git ×1

github ×1

mercurial ×1

ssh ×1

tortoisehg ×1