1

我正在努力让它工作:

使用 NBGit 从 ssh 服务器克隆一个 git 项目。我安装了 NBGit,在本地运行良好,但是当给出连接参数时,我不确定什么是正确的 URL。

或者可能目前不支持?

NBGit 0.4 用于 Win7 上的 NB 6.9.1

4

1 回答 1

1

网址应为:

git@myserver:/myreppo

在此处输入图像描述

但正如issue 91中所报道的,这可能效果不佳。
我将探讨问题 56中提出的解决方法:

在你的 ~/.ssh 目录中,创建一个“config”文件

在文本编辑器中打开 ~/.ssh/config 并输入以下内容:

Host AHostName -- this will be the name you will be calling in nbgit
User gituser
Hostname SSH IP address --eg 192.68.24.1 --my git server
Port 1234 -- use this if you need custom ports
IdentityFile "path to your private ssh key"

从那里,网址可以是:

AHostName:myrepo
于 2011-03-18T20:19:58.300 回答